Re: FN-FORUM: Javascript security model?
date posted 14th January 2008 09:38
>I am trying to change a frames based javascript tree browser to
>work in a single page, regardless of whether that page is in a frame,
>standalone page or popup window.
I don't think this is security, I suspect the interaction between
document.write and the onload event. I'm not quite sure how this would
be interpreted, but if I view the actual DOM in firefox all of the
section has disappeared.
I'd probably change it to modifying individual elements by ID, it's a
little more precise.
function sayHi() {
alert("you");
}
function init() {
document.getElementById("aaa").innerHTML = 'Hi'
}
--
--Richard
http://www.zaretto.com