Putting Script Directly in the onclick Event Handler : Button « Form Control « JavaScript DHTML
- JavaScript DHTML
- Form Control
- Button
Putting Script Directly in the onclick Event Handler
<html>
<head>
<title>Page with Pushbutton</title>
</head>
<body>
<form>
<input type="SUBMIT" name="BUTTON1" value="PUSH" onclick="alert('pushed')">
</form>
</body>
</html>
Related examples in the same category