Shecky
03-10-2003, 04:59 PM
This should give you some context:
bar test (http://www.technosquid.com/externaljunk/bar.htm)
I'm testing out this little loading bar i want for a page i'm doing. I have it so it stops 'onload' the iframe.
I'm having a problem telling it to start... and i dont want to use an onclick or a javascript href every time i want the event to fire... i was wondering if there was a way, in script to get an event to fire any time any new url targets this frame, or just any time the url changes.
I tried things like using onunload and onbeforeunload and onchange and onpropertychange (anything that sorta kinda made sense) in the IFRAME tag... it seem that onunload doesnt act opposite of its counterpart, in all respects.
i have it in my mind that something like
document.all.frames("framename").document.body.onbeforeunload = "javascript:parent.myvar=myvalue;"
but i cant seem to find it.
am i even close on this one, guys?
bar test (http://www.technosquid.com/externaljunk/bar.htm)
I'm testing out this little loading bar i want for a page i'm doing. I have it so it stops 'onload' the iframe.
I'm having a problem telling it to start... and i dont want to use an onclick or a javascript href every time i want the event to fire... i was wondering if there was a way, in script to get an event to fire any time any new url targets this frame, or just any time the url changes.
I tried things like using onunload and onbeforeunload and onchange and onpropertychange (anything that sorta kinda made sense) in the IFRAME tag... it seem that onunload doesnt act opposite of its counterpart, in all respects.
i have it in my mind that something like
document.all.frames("framename").document.body.onbeforeunload = "javascript:parent.myvar=myvalue;"
but i cant seem to find it.
am i even close on this one, guys?