HTML and CSS Reference
In-Depth Information
// ]]> -->
</script>
</body>
</html>
Save this document as quantityif.html and display it in the browser. If the prompt box
does not appear, remember to check the Error Console for errors. When the prompt
box appears, type the number 0 and click the OK button. You should see the error mes-
sage you have created in the browser window, as shown in Figure 14.15.
Figure 14.15
The browser on the
left shows the
prompt box with
input of 0 and the
browser on the right
shows the result
Now refresh the page and this time enter a value greater than 0, as shown in Figure 14.16.
Figure 14.16
The browser on the
left shows the
prompt box with
input of a value
greater than 0 and
the browser on the
right shows the
result
 
Search WWH ::




Custom Search