Jump to content
6 posts in this topic

Recommended Posts

<script language="javascript">
<!---
diecutting=2;
function calculate(){
if (document.form.diecuttingcheck.checked)
	{var diecuttingmultiple=1}
	else
	{var diecuttingmultiple=0}
var total=(diecutting * diecuttingmultiple); 
document.writeln(total);
}
-->
</script>
<form name="form">
<input type="checkbox" name="diecuttingcheck" onClick="calculate();">
</form>

 

for some reason, in firefox, it hangs when its outputting the total. there must be something wrong i'm doing... though, not sure what it is =\ anyone see anything wrong?

 

i'm kind of new to javascript. i hardly used it before. i have more experience with php than javascript U_U;;

Link to comment
https://www.insanelymac.com/forum/topic/24353-need-some-help-with-javascript/
Share on other sites

  • 1 month later...
×
×
  • Create New...