Hi!

  In a (ugly) javascript I try to test if window.location.replace
  exists, before I use it:

  if(window.location.replace) window.location.replace(href);
  else window.location.href = href;

  This works well in IE >= 5.5, Safari, Netscape and Mozilla. IE 5.0
  seems to have a different implementation of replace(), because I get
  an error.

  Does anybody know a bullet proof solution to this problem?

Thanks!

  Martin.

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to