Ciberon Posted August 11, 2006 Share Posted August 11, 2006 I'm currently making a website, I'm using a frame as sidebar containing links. The problem is, when I click a link, it opens the page in a new window instead of in the same page.Main Page: <html><!------------------------------------------><!--Settings--><!------------------------------------------><title>*****</title><!------------------------------------------><!--Body--><!------------------------------------------><frameset rows="21%,79%"><frame noresize="noresize" src="top.htm"><frameset cols="14%,86%"><frame noresize="noresize" src="sidebar.htm"><frame noresize="noresize" src="home.htm"></frameset><noframes><body>Your browser does not handle frames.<br>It is required for your browser to handle<br>frames to be able to view correctly this website.</body></noframes></frameset></html>Sidebar:<!---------------><!--Sidebar---><!---------------><a href ="home.htm" target ="showframe"><img src=img/home.png></a><br><a href ="e-mail_login.htm" target ="showframe"><img src=img/e-mail.png></a><br><a href ="frame_c.htm" target ="showframe">Frame c</a> Link to comment Share on other sites More sharing options...
Moridin Posted August 12, 2006 Share Posted August 12, 2006 This might help you.- Moridin Link to comment Share on other sites More sharing options...
joecoolaug Posted August 15, 2006 Share Posted August 15, 2006 <!---------------><!--Sidebar---><!---------------><a href ="home.htm" target ="showframe"><img src=img/home.png></a><br><a href ="e-mail_login.htm" target ="showframe"><img src=img/e-mail.png></a><br><a href ="frame_c.htm" target ="showframe">Frame c</a> This will work, but it won't open in one of the specific frames, it will open in the entire window.<!---------------><!---Sidebar---><!---------------><a href ="home.htm" target ="main"><img src=img/home.png></a><br><a href ="e-mail_login.htm" target ="main"><img src=img/e-mail.png></a><br><a href ="frame_c.htm" target ="main">Frame c</a> Wait a minute... I just read something on the W3schools site.http://www.w3schools.com/html/html_frames.asp <html><!------------------------------------------><!--Settings--><!------------------------------------------><title>*****</title><!------------------------------------------><!--Body--><!------------------------------------------><frameset rows="21%,79%"><frame noresize="noresize" src="top.htm"><frameset cols="14%,86%"><frame noresize="noresize" src="sidebar.htm" id="frame1" name="frame1"><frame noresize="noresize" src="home.htm" name="frame2" id="frame2"></frameset><noframes><body>Your browser does not handle frames.<br>It is required for your browser to handle<br>frames to be able to view correctly this website.</body></noframes></frameset></html> <!---------------><!---Sidebar---><!---------------><a href ="home.htm" target ="frame1"><img src=img/home.png></a><br><a href ="e-mail_login.htm" target ="frame2"><img src=img/e-mail.png></a><br><a href ="frame_c.htm" target ="frame1">Frame c</a> I'm 99% sure this will work. It will link the first image and the link with the text "Frame C" to the frame with the id="frame1" and the other image, obviously, will link to the frame with the id="frame2." Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now