You are here: irt.org | FAQ | JavaScript | Number | Q1604 [ previous next ]
Try:
<script language="JavaScript"><!-- var val = prompt('enter an number'); while (parseInt(val) != val) { val = prompt('enter an number'); } //--></script>
©2018 Martin Webb