Welcome to WebmasterWorld Guest from 184.108.40.206 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
I've been using
as part of a button, without a form. It makes for handy navigation on various pages.
The problem, is I have recently discovered this seems to throw up an error in IE5 and possibly NS6 aswell.
Not sure about IE5.5 can anybody say either way?
My main question is, do you know why it doesn't work. Is it becuase of the way I'm doing it. I've had problems with window.location compatibility before...
If not can you suggest a better way of doing it? I would prefer to keep the button if at all possible
Thanks in advance :)
using IE5, I get no errors with the following code:
Does that make any diference for you?
Well, technically location is a window element. However, the parenthesis shouldn't be there...
Change your code to this:
surely it's better to:
<input type="submit" value="View Basket"> </form>
Cheers all, it was the () that was causing the problems.
The main reason I didn't use a form, was because theres another form on the page, with the submit button to the right of this one. Also having two forms one after the other causes problems being on the same line. I guess if i stuck them in a table it might work....
Hmmm will have to play a little more. Thanks for your help though!