| | |
focus on frame
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2008
Posts: 62
Reputation:
Solved Threads: 3
Hi There, I have a page containing the following code
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.
html Syntax (Toggle Plain Text)
<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>
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.
html Syntax (Toggle Plain Text)
<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>
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
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
![]() |
Similar Threads
- Set focus on frame (Python)
- focus on link (JavaScript / DHTML / AJAX)
- JOptionPane losing focus (Java)
- Time Frame for Growing Forum (Social Media and Online Communities)
- JDialog Problem (Java)
- center a frame?? setFocus?? (Java)
Other Threads in the HTML and CSS Forum
- Previous Thread: Convert Navbar from Javascript to CSS
- Next Thread: Float not working in Firefox.
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






