Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Euro symbol in text box

Status
Not open for further replies.

nerram

Programmer
Apr 23, 2003
56
IE
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>
<script type=&quot;text/javascript&quot;>
function boxone()
{
price=10;
quanity=20;
price = price * quanity;
document.myForm.box1.value= '&#8364;' + price;
}
</SCRIPT>

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<form name='myForm'>
<input name=&quot;How much of Budget Left?&quot; type=&quot;button&quot; onclick=&quot;boxone()&quot; value=&quot;Department BudgetLeft=&quot;>
<INPUT type=TEXT name=&quot;box1&quot; size=&quot;4&quot;>
</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 &#8364 bit but that didnt work. any ideas?
 
I tried the code and it works with no problems.
IE6.0 & Netscape 6.0 /Win2000.

I press the button and I get the €200 correct value.
Twilight zone?? What browser are you testing with?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top