Mix complicated code with HTML : Source File : Language Basics JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Language Basics » Source File »

 

Mix complicated code with HTML

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--

//  -->
</script>
</head>
<body>
<p onclick="units = prompt('How many do you want','Enter quantity');alert('Cost per unit is $9.99, therefore total cost for ' + units + ' is ' + units * 9.99);">Click here to specify quantity</p>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Language Basics
» Source File