[Javascript] location.href fails in Firefox

Peter Brunone peter at brunone.com
Mon Jun 18 14:01:20 CDT 2007


Last time I checked, location.href was a property and not a method.  IE may have a supplemental attribute for this, but the standard way to do it is 

location.href = myURL

rather than the approach below.

Cheers,

Peter

----------------------------------------

From: "Del Wegener" del at delweg.com

Good Day;
I compute myURL and then change the page with the statement 
location.href(myURL).
This works fine when viewing the site with IE6 or IE7, but fails when 
viewing the page with Firefox.
I have inserted an alert statement as an attempt to debug and myURL is 
computed correctly and is exactly the same regardless of the browser.

Does Firefox treat location.href differently?

What must I do to fix this ?

Thanks for any help

Del
del at delweg.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070618/183ebe6b/attachment.htm>


More information about the Javascript mailing list