I made some links in the toolbar and i would like them to load a specific frame instead of the whole thing i know there is a way to do it. Could someone tell me what the code is?
Thanks
DJLunacy
Printable View
I made some links in the toolbar and i would like them to load a specific frame instead of the whole thing i know there is a way to do it. Could someone tell me what the code is?
Thanks
DJLunacy
I a frameset, you mean?
Consider the following:
Each frame needs a name, e.g. name="main".Code:<html>
<head>
<title>Frames Page</title>
</head>
<frameset cols="150,*">
<frame name="contents" target="main" src="contents.html">
<frame name="main" target="main" src="home.html">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
Now you need to tell the hyperlinks which frame to load into. You do this with a target tag, e.g. target="main". Linked pages will load into which frame is specified by the target tag.
You can also put a target tag in the head section of a page to affect all the links on that page only:
And you can put it in the individual hyperlink tags too:Code:<head>
<base target="main">
</head>
Clear as mud? :)Code:<a href="page2.html" target="main">Page 2</a>
Yes I know that.. i am talking about if a toolbar selection to change the pages
ex. wbIE.Navigate = ("C:\your.html") [main]
something like that i am not sure how to type it up so it does not give me an error and actually loads in a frame.
Perhaps I'm not quite understanding what you're trying to do. Do you mean that you've got a frameset in the browser window and you want a link on the toolbar to the page displayed in one of the frames? If that's so then you can either view the frames page source and manually add a favourite/bookmark or right click on the frame and bookmark it from there...otherwise you're gonna have to be more specific. :)
I am programming my own browser for my site.. in my tool bar are the links to pages i want them to load in a frame (main)..
this is not HTML that i am trying to use.
Oh, right...I get you now. You're using the IE ActiveX control?
i am using the micrsoft transfer control thing.. do you know how to do what i am trying to figure out?
sorry :(