Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q731 Why can't I write into a frame of a a new window that I have just opened?

You are here: irt.org | FAQ | JavaScript | Window | Q731 [ previous next ]

The new window and its frames are not being given a chance to open and create themselves. You need to add a delay, possibly by using setTimeout to invoke another function after several seconds:

setTimeout('anotherfunctionname()',2000); // invoke anotherfunctinname() in 2 seconds time

Or you need to use the new window to tell the old window that it has loaded, and then invoke some function:

<FRAMESET onLoad="opener.anotherfunctionname()">

Feedback on 'Q731 Why can't I write into a frame of a a new window that I have just opened?'

©2018 Martin Webb