Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Gloogle Chlome

Name: Anonymous 2009-09-14 23:45

Cool thing:


<form name="formy">
<textarea name="display" rows="20" columns="20">LOL:</textarea>
<button name="whatever" onClick="document.formy.display.value = document.formy.display.value + '\nwhatever';">whatever</button>
</form>


This works as expected in IE, but not Chrome or Firefox

Name: Anonymous 2009-09-15 0:23

According to:

http://www.w3.org/TR/html401/interact/forms.html#h-17.5

"submit" is the default type for <button>

Note that if you use <button name="whatever" type="button">, Firefox does not submit the form, and behaves just like IE.  I don't know why IE would take the default type to be "button"...do the IE devs just make shit up as they go along?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List