# Continous running Java Script?

**URL:** <https://forum.kirupa.com/t/continous-running-java-script/306323>\
**Category:** web dev\
**Created:** [March 12, 2010, 10:05pm UTC](https://forum.kirupa.com/t/continous-running-java-script/306323 "2010-03-12T22:05:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boebarl1](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@boebarl1](https://forum.kirupa.com/u/boebarl1)\
**Post date:** [March 12, 2010, 10:05pm UTC](https://forum.kirupa.com/t/continous-running-java-script/306323/1 "2010-03-12T22:05:20Z")

</div>

For some reason this function runs continuosly? can someone see something wrong with this script, and why it runs continuosly?

```auto
<html xmlns = "http://www.w3.org/1999/xhtml">
  <head>
     <title>Temperature</title>
        <script type = "text/javascript">
 
function popup(){ 
 
 var fahrTemp = window.prompt( "Please enter the Current Temperature in fahrenheit.", "0" ); 
 
 fahrTemp = parseInt(( fahrTemp - 32)*(.55)); 
 
 document.write( "<h3>The current Temperature is " + fahrTemp + " Degrees Celsius</h3>" ); 
  
  }
 </script>
   </head>
   <body>
 
 <h3> Click the button below to see the Current Fahrenheit Temperature converted into Celsius.</h3>
 
 <input type="button" onclick="popup()" value="Temperature Conversion" >
 
   </body>
</html>

```
