Click to See Complete Forum and Search --> : Problem with FF 2.0


swmk
11-10-2006, 05:46 AM
Clicking on the button makes FF 2.0 to reload page. Any idea?
Here is the code;
<html>
<head>
<title>Test</title>
</head>
<body>
<br />
<div align="center">
<form>
<table border="0" cellpadding="5" bordercolor="#FFFFFF">
<tr>
<td align="center" colspan="2">
<button id="log_in" onclick="document.getElementById('status').innerHTML = 'clicked';">
Log In
</button>
</td>

</tr>
<tr>
<td></td>
<td>
<div id="status"></div>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

Regards;
Stephen

tgreer
11-27-2006, 05:30 PM
I see nothing in your code snippet that would force a reload. Can you give a live link to the site?

swmk
11-27-2006, 11:33 PM
Oh, I've solved this by adding return false; after function call.

tgreer
11-28-2006, 09:23 AM
That should only be required if the button is a SUBMIT button. FF2.0 must treat a generic button as a submit button... if it's the only button? Very strange indeed.