Object Methods (Math object:- sqrt() ) javascript code ...
<html>
<head>
<script language="javascript">
function xyz()
{
alert (Math.sqrt(9));
}
</script>
</head>
<body>
<form >
<input type="button" onclick="xyz()" value="TEST"></input>
</form>
</body>
</html>
Output:- 3
No comments:
Post a Comment