| Encode string in javascript |
|
|
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("w3calculator.com - Web Master Resource!!!!!"));
</script>
Output:
w3calculator.com%20-%20Web%20Master%20Resource%21%21%21%21%21
|
| Javascript - How to encode a string using javascript |
| The topic on Javascript - Encode string in javascript is posted by - Mallu |
Hope you have enjoyed, Javascript - Encode string in javascript . Thanks for your time.
|