Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Give focus on last loading page

Status
Not open for further replies.

Mat

Programmer
Jun 6, 1999
8
CA
In a frameset from a Menu frame I want to load a page in the main content and give the focus to that page, how? Thanks...
 
OK, let me know whether or not this does what you're wanting....<br>
try using this code (midified to match your preferred frame sizes of course) in you framesets page:<br>
<br>
&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;title&gt;My First Frames Page(just kidding)&lt;/title&gt;<br>
&lt;meta name=description content="a brief (255 characters or less) description of your page (the one that will be occupying the largest portion of the screen)"<br>
&lt;meta name=keywords content="some keywords or phrases (separated, by, commas,) to point to your site on search engines"&gt;<br>
&lt;frameset rows="20%,*"&gt;<br>
&lt;frame name=master src=&lt;frame name=slave src=&lt;/head&gt;<br>
&lt;noframes&gt;<br>
&lt;body&gt;<br>
&lt;a href= Here&lt;/a&gt; to see our site for non frames-enabled browsers<br>
&lt;/body&gt;<br>
&lt;/noframes&gt;<br>
&lt;/html&gt;<br>
<br>
and use the following HTML tag for the link on your menu bar that points to the page to be displayed in the main frame:<br>
<br>
&lt;a href= TARGET=SLAVE&gt;Click Here&lt;/a&gt;<br>
<br>
<br>
I hope this is what you were wanting...if not, then post your question in the Javascript forum and I'll try to answer it (using JavaScript of course) there.<br>
<br>
<br>
-Robherc<br>
robherc@netzero.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top