The code snippet shows what I'm trying to do.
I want to use javscript to manipulate the html elements that lie inside an iframe.
According to this link "http://www.dyn-web.com/tutorials/iframes/
", the restriction can be eased, but supposedly its only if one domain is a subdomain of the other. I tried, but it didn't work. I essentially just tried to set the parents document.domain variable equals to the domain of the page inside the iframe.
So, is there any other way I can access the iframe elements from the parent document?
var tmp = window.frames.document.getElementByName('Username');