Page 1 of 1

button not working in netscape

Posted: Tue Sep 10, 2002 8:59 am
by noguru
Any reason why this piece of wonderful coding is not working in netscape 6, but works wonderfully in IE5 or higher??

Code: Select all

<input name="next" type="image" src="login.gif" width="45"   onClick="window.location.href='nextpage.php?id=1'">
Even when I change the type to type="button" and onclick to onclick="nextpage.htm", still nothing happens, although onclick="alert('netscape is great')" does give you the message.

Posted: Tue Sep 10, 2002 9:02 am
by twigletmac
Any reason why this started life in the PHP forum and not the client-side forum?

Mac

Posted: Tue Sep 10, 2002 9:07 am
by mikeq
Is it within <form></form> tags?

Posted: Tue Sep 10, 2002 11:22 am
by Takuma
If it is in <form> tag and you only have a button in it use the following code.

Code: Select all

<form onSubmit="location.href='nextpage.php?id=1'">
  <input type="submit" value="Go!">
</form>
or try it without putting window. So like

Code: Select all

location.href='whatever'

Posted: Wed Sep 11, 2002 7:19 am
by noguru
Thnx it's working now.

I had to replace my nice login image button with a dull-looking submit button and change the style a bit to look decent. It's a pity it can't work in Netscape...

Posted: Wed Sep 11, 2002 7:50 am
by mikeq
It will be to do with the DOM (Document Object Model), basically how you refer to objects etc within the browser window.

Don't know the answer but do a search on Google perhaps or go onto developer.netscape.com.

Re: button not working in netscape

Posted: Fri Aug 28, 2009 3:02 am
by violdary
How can I make netscape navigator stop remembering what tabs I had open ? if there is a power failure ,netscape remembers what pages I had open,and I don't know how to stop that.
___________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite

Re: button not working in netscape

Posted: Fri Aug 28, 2009 1:13 pm
by kaszu
Off topic, but why are you using netscape? Noone is using it anymore.