[Javascript] location.href fails in Firefox
John Warner
john at jwarner.com
Mon Jun 18 14:05:10 CDT 2007
location.href = myURL;
This will work in both, href is a property of location, not a method
according to the spec, MS just allows you to get away with treating it as a
method.
John Warner
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu] On Behalf Of Del Wegener
> Sent: Monday, June 18, 2007 2:56 PM
> To: javascript at LaTech.edu
> Subject: [Javascript] location.href fails in Firefox
>
>
> 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
>
More information about the Javascript
mailing list