i have this website, by clicking on certain link on the website an iframe will be created within the same window.
my question, just wondering how to access this iframe?
i tried document.getElementById() return null
tried window.frames not there
Thanks
If you’ve given the
<iframe>element an ID thendocument.getElementById()will work. If you’re trying to get hold of itswindowobject then you’ll need to use the iframe element’scontentWindowproperty (or use the more standardcontentDocument, which is a reference to the iframe’sdocumentobject but is sadly absent from IE, at least up to and including version 7):