10. A computer-program product for use in conjunction with a computer system, the computer-program product comprising a non-transitory computer-readable storage medium and a computer-program mechanism embedded therein, to provide content, the computer-program mechanism including: instructions for loading a document associated with a first domain, wherein the document includes an embedded document associated with a daughter domain, and wherein the embedded document includes an embedded advertisement associated with a granddaughter domain; instructions for receiving information in the granddaughter domain indicating that a viewer of the document activated the embedded advertisement; instructions for determining if the document supports a cross-domain communication technique in response to receiving the information; instructions for determining if the first domain is different than the granddaughter domain in response to receiving the information if the document does not support the cross-domain communication technique; instructions for invoking, in the granddaughter domain if the first domain is different than the granddaughter domain, a series of windows corresponding to different candidate origins of the first domain; instructions for communicating access commands associated with the windows from the granddaughter domain to the document associated with the first domain, wherein a given access command includes one of the candidate origins, a content identifier for content associated with the embedded advertisement and a source location of the content; and instructions for processing one of the access commands having a candidate origin that is the same as that of the first domain using a cross-domain communication module executing in an environment of the first domain, wherein the processing involves linking to the content at the source location, which is displayed in one of the windows associated with the one of the access commands.
10. A computer-program product for use in conjunction with a computer system, the computer-program product comprising a non-transitory computer-readable storage medium and a computer-program mechanism embedded therein, to provide content, the computer-program mechanism including: instructions for loading a document associated with a first domain, wherein the document includes an embedded document associated with a daughter domain, and wherein the embedded document includes an embedded advertisement associated with a granddaughter domain; instructions for receiving information in the granddaughter domain indicating that a viewer of the document activated the embedded advertisement; instructions for determining if the document supports a cross-domain communication technique in response to receiving the information; instructions for determining if the first domain is different than the granddaughter domain in response to receiving the information if the document does not support the cross-domain communication technique; instructions for invoking, in the granddaughter domain if the first domain is different than the granddaughter domain, a series of windows corresponding to different candidate origins of the first domain; instructions for communicating access commands associated with the windows from the granddaughter domain to the document associated with the first domain, wherein a given access command includes one of the candidate origins, a content identifier for content associated with the embedded advertisement and a source location of the content; and instructions for processing one of the access commands having a candidate origin that is the same as that of the first domain using a cross-domain communication module executing in an environment of the first domain, wherein the processing involves linking to the content at the source location, which is displayed in one of the windows associated with the one of the access commands. 12. The computer-program product of claim 10 , wherein, prior to the instructions for invoking the series of windows, the computer-program mechanism further comprises instructions for accessing a list of predefined candidate origins of the first domain.