Frameset Problem In Html
Solution 1:
You can't change the URL without navigating to that URL.
You really don't want to use frames in the first place. Search engines (i.e. Google) wont index your site properly, users can't bookmark pages, and people just do not like frames, in the first place.
If you want to persist things like headers and sidebars across many pages without having to include the code in every single HTML file, you should consider using server-side includes.
Solution 2:
The question is still quite vague. As mentioned, you can use the target attribute to specify which frame to open a link in:
<a href="content.html" target="_content_frame">link</a>
You can use the HTML base target to specify a default target for all links (http://www.w3schools.com/TAGS/tag_base.asp):
<head><basehref="http://www.w3schools.com/images/" /><basetarget="_blank" /></head>
I don't believe you can change the main page URL when changing an individual frame. You would be better off using a frameless layout to accomplish this. One benefit is that it's better for search indexing and for user bookmarks.
Post a Comment for "Frameset Problem In Html"