Re: trying to understand the BUTTON tag in EXPLORER and MOZILLA
- From: "Jukka K. Korpela" <jkorpela@xxxxxxxxx>
- Date: Sun, 28 Aug 2005 09:35:02 +0300
joesplink wrote:
I created a form using buttons, for example
<BUTTON type="submit" name="PBUTTON" value="Sign In">Sign In</BUTTON>
Use <input type="submit" name="PBUTTON" value="Sign In"> instead.
and this worked OK when I tested the site using the MOZILLA browser, but, when I use the AOL EXPLORER browser, when I get the value of the button, I don't get "Sign In" I get "submit".
So,the button behaves differently depending on the browser?
Exactly. So use <input ...> instead.
It's not just AOL EXPLORER. It's also Internet Explorer that has a completely broken implementation of <button>.
On the other hand, don't rely on getting the name=value pair even when using <input ...>. You don't need it if you have just one submit button. And if you have multiple submit buttons, things are rather unpredictable when someone submits the form by pressing Enter in a text input field.
.
- Follow-Ups:
- Re: trying to understand the BUTTON tag in EXPLORER and MOZILLA
- From: joesplink
- Re: trying to understand the BUTTON tag in EXPLORER and MOZILLA
- References:
- trying to understand the BUTTON tag in EXPLORER and MOZILLA
- From: joesplink
- trying to understand the BUTTON tag in EXPLORER and MOZILLA
- Prev by Date: Re: Simple high-ascii character encoding
- Next by Date: Empty link
- Previous by thread: trying to understand the BUTTON tag in EXPLORER and MOZILLA
- Next by thread: Re: trying to understand the BUTTON tag in EXPLORER and MOZILLA
- Index(es):