[Web4lib] Javascript help

Chris Gray cpgray at library.uwaterloo.ca
Mon Jun 11 15:55:17 EDT 2007


According to my information IE 7 doesn't support the location.replace 
function.  You should see a message to this effect if you debug your 
page in IE 7.

Most likely this is due to the increased security in IE 7.  The 
location.replace function has a potential to hide things from the user.

Chris Gray
Library Systems
University of Waterloo

Bill Teschek wrote:
> I'm hoping some javascript guru can help me out with a short piece of code 
> (below). We adapted this from another website. It is designed to be a 
> redirection link that doesn't trick the back button and trap the user at the 
> destination page. It works just fine for most links that we put here (even if 
> the link is at the top level of the library's website), but in IE7 this one 
> DOES trap the user at this page.
>
> Works okay in Firefox, Opera, and IE6, but in IE7 it doesn't. Ideas?
>
> <script>location.replace("http://www.hampton.lib.nh.us/library/blog/2007/06/were
> -looking-for-volunteers.html")
> </script>
> </head>
> <frameset cols="0,*"></frameset>
> <noframes>
> <body>
> <a href="http://www.hampton.lib.nh.us/library/blog/2007/06/were-looking-for-
> volunteers.html">We need volunteers!</a>
> </body>
> </noframes>
>
> Bill Teschek
> bteschek at hampton.lib.nh.us
>
> _______________________________________________
> Web4lib mailing list
> Web4lib at webjunction.org
> http://lists.webjunction.org/web4lib/
>   



More information about the Web4lib mailing list