943,916 Members | Top Members by Rank

Ad:
Feb 4th, 2009
0

focus on frame

Expand Post »
Hi There, I have a page containing the following code

html Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
PomonaGrange is offline Offline
67 posts
since Jun 2008
Feb 5th, 2009
0

Re: focus on frame

html Syntax (Toggle Plain Text)
  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
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Convert Navbar from Javascript to CSS
Next Thread in HTML and CSS Forum Timeline: Float not working in Firefox.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC