Escape()

[Total: 0    Average: 0/5]

This shows how to use the escape() method to convert a string.

Body Code:

<script type=text/javascript>
var _v = "Hi there? Are < you > here ( )?"
var _x = escape(_v)
var _w = unescape(_x)
var _y = unescape(_v)
document.write('_v='+_v+'<br>')
document.write('_x='+_x+'<br>')
document.write('_w='+_w+'<br>')
document.write('_y='+_y+'<br>')
</script>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *