41
HTML (normal) / Re: Adding Images
« Last post by Connor on March 31, 2011, 03:47:29 pm »cheers
<img src="HERE">
<html>
<head>
<title>Alert by Connor</title>
<br>
</head>
<center>
<body>
<h1>Linking JavaScript Alerts to Buttons by Connor</h1>
</br>
</br>
</br>
<input type="button" value="CLICK HERE" onClick="doRedirect()">
<script type="text/javascript">
function doRedirect() {
alert("This is an alert");
}
</script>
alert("This is an alert");To change the button text, change the value="CLICK HERE"