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.

<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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.