You are on page 1of 1

<html> <head> <script> <!

-function NewAlert(a) { alert('Hi' +a+'how are you'); }

var currdate = new Date() var day = currdate.getDate() var month = currdate.getMonth() var year = currdate.getFullYear() document.write("<b>" + day + "/" + month + "/" + year + "</b>") --> </script> </head> <body> <form>Name <input type="input" name="ab"></input> <input name="r" value="Displa Message" onclick="NewAlert(form.ab.value)" href="J avaScript:void(0);" ></input> </form> </body>

You might also like