location.href bug with firefox

T

Tazy

does anyone know the work around using location.href with firefox. it
doesn't work with firefox but fine with ie.


please help,
doug
 
V

VK

Tazy said:
does anyone know the work around using location.href with firefox. it
doesn't work with firefox but fine with ie.

location.href is a *property* you have to assign a value to, not a
method. Because way too many people prefer do not read references but
do whatever *they* think is right, IE team added a support for
location.href(someURL) which is against of any specs but let the above
mentioned people keep on not reading references.
:) :-|

Change your code from the IE-specific hack
location.href(someURL);
to the proper form supported by all UA's including IE:
location.href = someURL;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top