Well, you cannot control the focus in your documents without some form of client side script, generally javascript. Browsers will otherwise just do whatever is their default, and this varies slightly in some browsers, but even more so in a frameset depending upon which page within it finishes loading last, and if any of these have forms that require focus.
And, you cannot focus on an H1 element. Only windows, frames, and form inputs can reliably receive focus via javascript (some - only some - browsers will allow links to do so as well). So, about the best that you can do is to focus on the frame containing the page with the H1 element on it. You could also add something to make it blink or highlight or something like that, but that is not focus, though it will draw the user's attention.
Now, how to set focus? This should probably be refined to be more specific, but in about the simplest terms you can:
Code:
<HTML>
<HEAD>
<TITLE>A basic frameset document (test for my wesite)</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%" onload = "window.frames['main'].focus();">
<FRAMESET rows="100, 200">
<FRAME src="logo.jpg">
<FRAME src="Frame1.html">
</FRAMESET>
<FRAME name="main" src="hmcontent.html">
<NOFRAMES>
<P>This frameset document contains:
<UL>
<LI><IMG src="logo.jpg" alt="My Logo">
<LI><A href="Frame1.html">This is my where my menu is (When I figure out how to do it)</A>
<LI><A href="hmcontent.html"> My Main content</A>
</UL>
</NOFRAMES>
</FRAMESET>
</HTML>
Bookmarks