focus on frame

Reply

Join Date: Jun 2008
Posts: 62
Reputation: PomonaGrange is an unknown quantity at this point 
Solved Threads: 3
PomonaGrange PomonaGrange is offline Offline
Junior Poster in Training

focus on frame

 
0
  #1
Feb 4th, 2009
Hi There, I have a page containing the following code

  1. <frameset rows="75,*">
  2. <frame src="menu.php" scrolling="no" marginwidth="0" marginheight="0" />
  3. <frame src="home.php" id="main" />
  4. <noframes><body>Your browser does not support frames.
  5. You can view the <a href="/home.php">Home Page</a>.</body>
  6. </noframes>
  7. </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.
Last edited by PomonaGrange; Feb 4th, 2009 at 10:53 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,369
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 164
almostbob's Avatar
almostbob almostbob is online now Online
Nearly a Posting Virtuoso

Re: focus on frame

 
0
  #2
Feb 5th, 2009
  1. <frameset onload='document.getElementById("main").focus()'; rows="75,*">
  2. <frame src="menu.php" scrolling="no" marginwidth="0" marginheight="0" >
  3. <frame src="home.php" id="main" >
  4. <noframes>
  5. <body>Your browser does not support frames.
  6. You can view the <a href="/home.php">Home Page</a>.</body>
  7. </noframes>
  8. </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
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC