You are here: Scrolling with keyboard keys immediately after page loads « HTML « IT news, forums, messages
Scrolling with keyboard keys immediately after page loads

Posted by wylbur37 on 10/01/05 14:47

I'm trying to implement a typical webpage with a sidebar menu on the
left side and a "main" display window to the right of it. When any of
the links on the sidebar are clicked, the corresponding page opens in
the "main" window.

This is typically done using FRAMEs.
The control page looks something like this ...

<FRAMESET COLS="15%,*">
<FRAME NAME="sidebar" SRC="menu.HTM">
<FRAME NAME="main" SRC="intro.HTM">
</FRAMESET>

The links in "menu.HTM" would look something like this ...

<a HREF="page1.htm" target="main">Page One</a>

(Notice that I'm using local web pages for simplicity).

Anyway, I discovered that as soon as the page for the link that's
clicked loads in the "main" frame window, if the contents is longer
than the height of the frame window and I need to scroll, I can *NOT*
immediately use the PgUp, PgDn, Up-Arrow or Down-Arrow keys on the
keyboard. I must first click the mouse arrow somewhere in the "main"
frame window, and only then will I be able to use the PgUp, PgDn,
Up-Arrow or Down-Arrow keys on the keyboard to scroll.

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

Is this a matter of finding the correct browser setting,
or is it done by HTML code? or both?

....

 

Navigation:

[Reply to this 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

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