Netscape/Macintosh Changing Form Button or Submit Input Value Fails

If you change the value of a using JavaScript - in Mac Netscape 3.04 and 4.x, the actual value will change, but the display will not update. The code below is a demonstration of this fact.

The code below works ok with Netscape on the Windows side, though an input's size will not change dynamically, so adding some padding can be helpful to force the button to accommodate the text may be necessary.



The code:

<form action="../">
<input type="BUTTON" value="1"
	onclick="this.value=parseInt(this.value)+1">
<input type="BUTTON" value="<--Get Value"
	onclick="alert(this.form.elements[0].value)">                                
</form>
blog comments powered by Disqus