- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>Sample Code</title>
- <script type="text/javascript">
- function RemoveCurrency(a)
- {
- if (a.indexOf("$") >= 0)
- {
- a = a.replace("$", "")
- }
- alert(a)
- };
- </script>
- </head>
- <body bgcolor=#00ff00 alink=blue vlink=blue>
- <FORM name="windowEvent">
- Enter String : <input type="text" name="txtOriginal" /><br>
- <input type="button" value="Remove Currency" name="btnRemoveCurrency" onClick="RemoveCurrency(txtOriginal.value);" />
- </FORM>
- </body>
- </html>
Loading

Join the conversation! Your thoughts help the community grow.