this function is use to run a set of statement for every regular interval of time , contain the arguments name of the functions and interval in milliseconds
by using this method we can display the message box in the web page prompet used to display the input dialog box <script> rval=window .prompt ("enter players name " ); alert ("rval "); </script>