// FLASHMEDIUM / Developer Home / Code / Javascript
  > > Utilizing Javascript's Prompt Function for getting user input
 


 
 
  This code goes between the head <tags>


<script language="JavaScript" type="text/JavaScript">
<!--
function Yourcost() {
var pages = prompt("Enter the number of pages you wish your FLASH site to have.");
var totalCost = pages * 165
var msg1="The cost to develop a "+pages+" page FLASH site is "+totalCost+" dollars";
document.EstimateOut.EstimateAns.value=msg1;
}
//-->
</script>

...Oh yeah

1. If you choose to cut and paste the code above then Make sure that the form name is is EstimateOut and that the Text Field name is EstimateAns

 
- - -
 
     
(fm) Home | Dev Home | Help | Site Map
Tutorials | Sound FX | Sound Loops | 3-D | Code | Images | Submit