Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

History.replace question

Status
Not open for further replies.

cactus1000

Programmer
Aug 31, 2001
149
US
I have a web page which, when loaded, invokes two javascripts, creating a pull-out menu. If I click on a menu item and then click on the back button, I get a blank page. I then have to reload the page to see the menu. I assume that both scripts need to be invoked to create the menu, and "back" isn't going to work. Do I need the back function to go to the first file (the one that calls the javascripts)? This seems odd since this is a widely used script (from Dynamic Drive). I know this involves the history.replace or location.replace functions, but I don't know the correct syntax, or where to put the function. Here's the first web page:

<html>

<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<title>HV Menu example</title>
</head>

<body>
<script type='text/javascript'>

//HV Menu- by Ger Versluis (//Submitted to Dynamic Drive (//Visit for this script and more

function Go(){return}

</script>
<script type='text/javascript' src='exmplmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
<noscript>Your browser does not support script</noscript>
</body>

</html>
 
Can you provide a link to the page? That way we can all look at the code and functionality to get a better picture of whats going on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top