By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

GET/SET element inside of iframe from parent pages

P: 83
how to get/set element that inside of iframe from parent pages..
please give me tip..
my iframe define :name="ifrMenu" id="ifrMenu"
the element inside of iframe that i need control :id="mnuLevel"
Nov 7 '08 #1
Share this Question
Share on Google+
2 Replies


iam_clint
Expert 100+
P: 1,208
Moving your thread to javascript.
Nov 7 '08 #2

100+
P: 428
You need a reference not to the iframe, but to the document in the window in the iframe:
var who=document.getElementById("ifrMenu");
var document2= who.contentWindow? who.contentWindow.document || who.contentDocument;

document2.getElementById("mnuLevel")
Nov 8 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.