focus() in body tag doesnt work

airplays55 at yahoo.com airplays55 at yahoo.com
Sun Jan 2 01:48:49 GMT 2005


I have a local html file set as my home page.  When it
loads I want the body (rather than the address bar) to
have the focus so the body tag calls a focus event
like so:

  <body onload="this.focus();"> 

This way (in firefox and IE) if my cursor is in the
address bar, and I click the home icon, then after the
page loads, the document has the focus, which enables
me to hit the spacebar for page down functionality.

Unfortunately in my version of konqueror (3.2.2),
after clicking the home icon, the address bar still
has the focus instead of the document, so hitting the
space bar puts a space in the address bar instead of
paging down.  I have to click inside the document to
shift focus to it, then I can use the spacebar to page
down.

Is this a bug in konqueror, or is there a workaround
to make that work?




		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 





More information about the kfm-devel mailing list