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

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

You are here: irt.org | FAQ | JavaScript | Frame | Q57 [ previous next ]

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

©2018 Martin Webb