Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!news-transit.tcx.org.uk!rt.uk.eu.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Mike S Newsgroups: comp.lang.javascript Subject: cross-scripting issue: use javascript/DOM on iframe loaded from different domain, how? Date: Mon, 19 Dec 2011 17:44:53 -0800 Organization: A noiseless patient Spider Lines: 19 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 20 Dec 2011 01:45:07 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ZhM0ScOAXLDSt+8z07l7Eg"; logging-data="15428"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OL5bFp+vE3gV2wfuUg1oI" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 111219-1, 12/19/2011), Outbound message Cancel-Lock: sha1:uSzau5hrpPVUqOjnWkSiIQwVDZE= Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:9443 I have a page that contains an iframe which loads a page from a different domain that I do not control. The iframe includes the following select: I would like to be able to select AAA using javascript on the parent page. I can work with the people who maintain the site that hosts the page loaded into the iframe, so I'm wondering if there is some way that they cold modify their page that would allow me to execute javascript on it from my parent page? Would including window.domain="mydomain.ext" in the iframe page, where mydomain.ext is the domain hosting the parent page, allow me to access the iframe DOM with javascript? TIA, Mike