In Jozef Izso <
[email protected]> had this to say:
My reply is at the bottom of your sent message:
Yes, I'm sure that this is IE problem. I'm not using the HTML editor.
Try this:
<form action="login.cgi" method="get"
onsubmit="alert(document.getElementById('btnAction').getAttribute('value'));
return false;">
<button id="btnAction" name="action" value="login">Prihlásit</button>
</form>
Alert will show "Prihlásit" instead of correct "login".
"Galen" wrote:
Yes it shows the prihlásit...
<form action="login.cgi" method="get"
onsubmit="alert(document.getElementById('btnAction').getAttribute('value'));
return false;">
<button id="btnAction" name="action" value="login">LOGIN</button>
</form>
Shows login... The value is just what is parsed - the text is what is seen
in the button. Thus prihlásit becomes login when you change it. You could
make it:
<form action="login.cgi" method="get"
onsubmit="alert(document.getElementById('btnAction').getAttribute('value'));
return false;">
<button id="btnAction" name="action" value="login">Sign On</button>
</form>
For example. That's what it's supposed to do?
The content not bracketed is the value passed to the browser the value is
the the action it will take. An attribute IIRC and not an element? Anyhow
the unbracketed text is what is displayed in the browser.
Example for simplicty?
<a href="
www.example.com/somelink.html">Click this link to go visit
Example.com</a> The unbracketed text is displayed...
Galen
--
"And that recommendation, with the exaggerated estimate of my ability
with which he prefaced it, was, if you will believe me, Watson, the
very first thing which ever made me feel that a profession might be
made out of what had up to that time been the merest hobby."
Sherlock Holmes