Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Window | Q731 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.