encode string in javascript - Javascript Views : 310
Tagged in : Javascript
Send mail vote down 0 vote down 0
Encode string in Javascript:

Use escape() to encode a string in javascript. This function encodes special characters, with the exception of: * @ - _ + . / ...

<script type="text/javascript">
document.write(escape("hscripts.com - Web Master Resource!!!!!........"));
</script>


O/P:
hscripts.com%20-%20Web%20Master%20Resource%21%21%21%21%21........
By - Ramya, On - 2010-01-11




    Login to add Comments .