0

Hi There, I have a page containing the following code

<frameset rows="75,*">
  <frame src="menu.php" scrolling="no" marginwidth="0" marginheight="0" />
  <frame src="home.php" id="main" />
  <noframes><body>Your browser does not support frames.  
  You can view the  <a href="/home.php">Home Page</a>.</body>
    </noframes>
    </frameset>

NOTE: there is nothing else on the page except for <head> info.
I would like to focus on the frame "main" so that when a user presses, say the down arrow, it will scroll down like normal.

How should this be done?

You help would be appreciated.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by almostbob
0
<frameset onload='document.getElementById("main").focus()'; rows="75,*">
<frame src="menu.php" scrolling="no" marginwidth="0" marginheight="0" >
<frame src="home.php" id="main" >
<noframes>
<body>Your browser does not support frames.
You can view the <a href="/home.php">Home Page</a>.</body>
</noframes>
</frameset>

If you, use a css positioned menu,
you dont have to have ugly framesets
the page will scroll,
index better
and will work in browsers with javascript disabled

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.