Mohit Blog
Wednesday, February 10, 2010
How to Replace '&' to '&' in Javascript.
<html>
<body>
<script type="text/javascript">
var str= "&";
alert(str);
str= str.replace(/\&/g,'&');
alert(str);
</script>
</body>
</html>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment