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>