<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript">
function boxone()
{
price=10;
quanity=20;
price = price * quanity;
document.myForm.box1.value= '€' + price;
}
</SCRIPT>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<form name='myForm'>
<input name="How much of Budget Left?" type="button" onclick="boxone()" value="Department BudgetLeft=">
<INPUT type=TEXT name="box1" size="4">
</FORM>
</BODY>
</HTML>
The code above when executed should return €200 when the button is clicked. I tried then euro symbol on its own without the € bit but that didnt work. any ideas?
<script type="text/javascript">
function boxone()
{
price=10;
quanity=20;
price = price * quanity;
document.myForm.box1.value= '€' + price;
}
</SCRIPT>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<form name='myForm'>
<input name="How much of Budget Left?" type="button" onclick="boxone()" value="Department BudgetLeft=">
<INPUT type=TEXT name="box1" size="4">
</FORM>
</BODY>
</HTML>
The code above when executed should return €200 when the button is clicked. I tried then euro symbol on its own without the € bit but that didnt work. any ideas?