...

View Full Version : history problem



tpeck
09-18-2005, 11:59 PM
I have a page that I want to replace dynamically with another, using redirURL (or any other method I guess - if it works). But I don't want the history to know about it...


<script>
redirURL = "http://my.com/new.html";
self.setTimeout("self.location.href = redirURL;",0000);
}
</script>

This replaces the page.

But self.replace.location, while hiding the action from the history, doesn't do the action! What can I be doing wrong?

Thanks,

Terry

rwedge
09-19-2005, 12:31 AM
This should do it:

<script type="text/javascript">
<!--
location.replace('http://my.com/new.html');
// -->
</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum