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

Q57 How do I set one frame to have the focus?

irt.org | Knowledge Base | JavaScript | Frame | Q57 [ previous next ]

Q57 How do I set one frame to have the focus?

Within the frame document, i.e. the document to be loaded in the frame that yout want to have the focus:

<body onLoad="self.focus()">

Brian Vozza correctly points out that you can also set the focus on another frame via the parent frame:

<script language="JavaScript"><!--
parent.frameName.focus();
//--></script>

Feedback on 'Q57 How do I set one frame to have the focus?'


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.