Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick Issue :: onClick with FireFox 1

Status
Not open for further replies.

shu745

Programmer
May 14, 2001
79
US
Hey all I was just wondering if FireFox has a bug. It seems that when I use this code:
---------------------------
<html>
<head>
<body>
outside form tags<br>
<button onClick="javascript:window.location.href='index.html'">Reset</button>
<br><br>
<form>
inside form tags<br>
<button onClick="javascript:window.location.href='index.html'">Reset</button>
</form>
</body>
</html>
------------------------------
The button does not work when inside the form tags but does work when outside. IE and NS6 work fine both ways.

Does anyone else have this problem? Is it a bug w/ FireFox?

Thanks.
- Shu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top