| Webdesign - JavaScript - Hændelser (Events) |
|
onAbort
onBlur
onChange
onClick
onError
onFocus
onLoad
onMousedown
onMouseOver
onMouseOut
onMouseup
onSelect
onSubmit
onUnload
| onClick |
| <input TYPE="SUBMIT" NAME="Send" onclick="testResults(this.form)"> |
| onClick="alert('Hello again')" |
onClick="window.open('hugo.htm','hugo','width=314,height=298')"
|
| onMousedown, onMouseup |
<button onMousedown="alert('Down')"> Klik </button>
<button onMouseup="alert('Up')"> Klik </button>
|
<button onMousedown = "a='Down'"
onMouseup = "b='Up'"
onClick = "alert(a + b)">
klik
</button>
|
<button onMousedown = "alert('Down')"
onMouseup = "b='Up'"
onClick = "alert(b)">
klik
</button>
|
<h3 onMouseOver="style.color='#BB33FF'"
onMouseOut ="style.color='#000000'">
This will change to purple when the mouse touches it,
and back to black when the mouse moves off
</h3>
|
This will change to purple when the mouse touches it, and back to black when the mouse moves off |