Button Alerts

<form>
<input type="button" value=" Back " onClick="history.go(-1)">
</form>

<form>
<input type="button" value="Click Here" onClick='alert("Today\'s Date: " + Date())'>
</form>

Notice the single and double quotes. Either type can be nested within the other, as each type is a seperate container. They can be used interchangably.

<form>
<input type="button" value="Focus Here" onMouseOver='alert("This is a MouseOver Alert"
)'>
</form>

<form>
<input type="button" value="Try Leaving" onMouseOut="alert('What! Leaving So Early?')">
</form>

The Alert is triggered by an event. Other events include: onLoad, onUnload, onClick, onDblClick, onMouseOver, onMouseDown, onMouseMove, onMouseUp, onMouseOut, onFocus, onBlur, onSubmit, onReset, onChange. And there are plenty of Others.