It's a security breach. Script in one
window/frame can't access properties of a separate window/frame if the domain's
are different. Use this script to see what I mean:
var newWindow =
window.open("", "testWindow",
"width=300,height=300");
newWindow.opener = self; alert(newWindow.document.location); newWindow.document.location = "http://imdb.com"; alert("Wait til page loads..."); alert(newWindow.document.location); Initially the window has the local computer's
domain, and you can access the property just fine. Once you change the
domain by setting the document.location, you'll get an access denied error if
you try to read the property you just set.
|
- [DQSD-Users] how do I access document prope... k n
- Re: [DQSD-Users] how do I access docum... Monty Scroggins
- RE: [DQSD-Users] how do I access docum... Krohne Gregory Contr AFRC/SCOS