We are constantly accelerating upwards and outwards from the Earth. I know, I can feel it.” Anon
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: Basics plus tutorial code snippet 6.

 

Up Up to JavaScript: Basics plus overview page

 

 

Building a multiple 'if' conditional with 'AND' comparison operator '&&'.

Acting on user input from 'window.prompt()'.

Same output as previous snippet 5 but layout of code clearer.

 

Source code view



 

 

You can open the above example in a new window to view the 'window.prompt()' dialog.


View above example in a new window


Please note:

Default security settings in Internet Explorer 7.0® may prevent the snippets incorporating the 'window.prompt()' dialog window from running.

All snippets should run OK if you are using a Firefox® or Opera® browser.


Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk