Doulble html link
Can someone tell me what is wrong with this:
<a href="Menu.html" target="leftFrame" onClick="mainFrame.location='aboutus.html';">Return to main menu</a><br> I want to return to a menu and page from another menu and page. |
Try to do everything from JS:
Code:
<span onclick="leftFrame.location.href='Menu.html'; mainFrame.location.href='aboutus.html'">Click</span> |
Thanks, unfortunately that does not create a hyperlink, only an inactive Click.
This is the line I am trying to replace with dual action: <br> <a href="Menu.html">Return to menu</a><br> <br> The line below jumps to Menu.html, but does not open aboutus.html in mainFrame <a href="Menu.html" target="leftFrame" onClick="mainFrame.location='aboutus.html';">Return to main menu</a><br> |
If you so want it to be an anchor, then try this:
Code:
<a href='#' |
Thank you again. This time Click is a hyperlink, but does nothing.
Below is the complete file (with your suggestion included), may be there's something missing? The real site is fmc.org.nz/kaumatua <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Kaumatua Tramping Club Inc</title> <meta name="description" content="a club formed to enjoy tramping at a pace governed by our age and wisdom"> <meta name="keywords" content="Kaumatua, Tramping"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="STYLESHEET" type="text/css" href="Menu.css"></head><body style="color: rgb(0, 0, 0); background-color: rgb(176, 202, 220); background-image: url(menu.gif); height: 665px;" alink="#000099" link="#000099" vlink="#990099"> <br> <br> <big style="font-style: italic;"><big><span style="font-family: Helvetica,Arial,sans-serif;"></span></big></big><span class="menuTXT"></span><big style="font-style: italic;"><big><span style="font-family: Helvetica,Arial,sans-serif;"></span></big></big><small style="font-family: sans-serif;"><small><br> </small></small> <div style="position: absolute; left: 12px; width: 171px; top: 207px; height: 493px;"><span><span style="font-weight: bold; font-style: italic; font-family: sans-serif;">Trampers tales</span><br class="menuTXT12"> <br class="menuTXT12"> <small><a style="font-family: sans-serif;" class="menuTXT12" href="essay.html" target="mainFrame">There's old in them <br> thar hills</a><br style="font-family: sans-serif;" class="menuTXT12"> <br style="font-family: sans-serif;" class="menuTXT12"> <a style="font-family: sans-serif;" class="menuTXT12" href="cascade.html" target="mainFrame">From the Cascade<br> Coast to the Red Hills </a><br style="font-family: sans-serif;" class="menuTXT12"> <br style="font-family: sans-serif;" class="menuTXT12"> <a style="font-family: sans-serif;" class="menuTXT12" href="northern.html" target="mainFrame">A Northern Crossing <br> of the Tararuas</a><br style="font-family: sans-serif;" class="menuTXT12"> <br style="font-family: sans-serif;" class="menuTXT12"> <a style="font-family: sans-serif;" class="menuTXT12" href="best-ever.html" target="mainFrame">The Best Trip Ever</a></small> <br class="menuTXT12"> </span><span class="menuTXT"><br> </span><span><small><a style="font-family: sans-serif;" class="menuTXT12" href="puki-ariki.html" target="mainFrame">Puli Ariki - Hills of the Chiefs</a><span style="font-family: sans-serif;"></span><br> </small></span><span class="menuTXT"><br> </span><span><small><a style="font-family: sans-serif;" class="menuTXT12" href="Sayer_hut.html" target="mainFrame">Part of our History</a></small></span><br> <span class="menuTXT"> <br> </span><span></span><small><a style="font-family: sans-serif;" class="menuTXT12" href="sensuous.html" target="mainFrame">A Very Senuous Day</a></small><br> <span class="menuTXT"> <br> <br> <br> <a href='#' onclick="leftFrame.location.href='Menu.html'; mainFrame.location.href='aboutus.html'; return false;">Click</a> <br> <br> <small>Views expressed <br> are those of the writer</small></span></div> <img style="position: absolute; top: 66px; left: 9px;" alt="club badge" src="badge.png" height="113" width="113"> </body></html> |
There is no leftFrame or mainFrame in your source. Please use [code] and [/code] tags when quoting source.
|
Re: There is no leftFrame or mainFrame in your source.
What does that mean? The left and main frames work as they should, other than the "Return to Menu" function I'm trying to implement. Is it defined in the index.html file? Code:
<frameset cols="165,*" frameborder="NO" border="0" framespacing="0" rows="*"> |
All times are GMT -5. The time now is 04:18 AM. |