Reputation: 320
I am having 3 frames in one page. Frame 1 contains the heading, Frame 2 contains menus and frame 3 contains the pages. When I click the link in frame 2 the page is loading in frame 3. But when I right click and open with new tab if I give only that page is loading in new tab. I want to load that page with 3 frames only and the page should be loaded in third frame only.
This means that if I in any way open that url, it has to load the page which contains 3 frames and the specified page should load in frame 3 only. Can anyone tell me how can I do this?.
My frame markup is as follows
<frameset framespacing="0" rows="140,*">
<frame id="head" frameborder="0" src="http://localhost:1359/WebSite1/Head.aspx" name="frame_a" scrolling="no" noresize="noresize" border="0" onload="framespacing='0'">
<frameset framespacing="0" cols="15%,80%">
<frame id="Menu" frameborder="0" src="http://localhost:1359/WebSite1/Menus.aspx" name="frame_b" >
<frame id="Page"frameborder="0" src="http://localhost:1359/WebSite1/HomePage.aspx" name="frame_c" style="background-color:White" >
</frameset>
</frameset>
Upvotes: 0
Views: 2855
Reputation: 1
Please use On a button click event (or some other event):
Response.Write("<script>window.open('PageName.aspx','FrameName');</script>")
Upvotes: 0
Reputation: 101614
target=""
attribute of your <a>
(anchor) is designed to do this.
Specify the ID of the frame, or use one of the "special" targets:
_blank
(new page)_top
_parent
_self
More info can be found here.
Upvotes: 1
Reputation: 9001
You open a link in a specific frame by using the target attribute of the anchor element.
<a href="page.html" target="frameid">Link</a>
Upvotes: 1