Reply to Re: Scrolling with keyboard keys immediately after page loads

Your name:

Reply:


Posted by 221713540Stephen Mozyra on 10/02/05 23:28

Hello, wylbur37!
You wrote on 1 Oct 2005 04:47:56 -0700:

[Sorry, skipped]
w> Why is this? Is there a way to specify that as soon as a page loads
w> in the "main" frame window, I should be able to *immediately* use the
w> PgUp, PgDn, Up-Arrow or Down-Arrow keys on the keyboard, *without*
w> having to first click the mouse arrow somewhere in the "main" frame
w> window?
[Sorry, skipped]

Try to use javascript. Maybe, OnLoad even for BODY in main frame. For
example:
....
<body onLoad="document.focus()">
....

There is a method focus() for body element, but it's not working in myIE.
So, you should try something more complex:
....
<body onLoad="document.getElementById('firstLink').focus()">
<a href="..." id="firstLink">This is a first link in your main page, or
it may be image, or smth else?</a>
....


// WBR, Stephen Mozyra
// SM17-UANIC, http://cave.no-ip.biz

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация