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

Feedback on: irt.org FAQ Knowledge Base Q57

irt.org | About | Feedback | 4268 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q57

Sent by
Frank Carmody on November 13, 2002 at 16:28:36:

Technical:
Not technical enough

Comments:
This will work for most browsers. IE 4-5 on mac mac requires something more creative as there is a bug in the focus() method.

I used the following function which is called from the body onLoad event.Notice that the function focuses a text field, which then focuses the window/frame itself. The whole sha-bang is placed in a hidden div. See code below.


<body bgcolor="#FFFFFF" onLoad="fucFocus()" leftmargin="0" topmargin="0">

<form>
<div id="hidden" style="position:absolute; left:0px; top:250px; width:85%; visibility: hidden;">
<input name="txtFocus" type="text" id="txtFocus" onfocus="window.focus()">
<script language="JavaScript">
function fucFocus(){
document.all.txtFocus.focus();
}
</script>
</div>
</form>


Other feedback on 'irt.org FAQ Knowledge Base Q57' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.