JavaScript Reference/Javascript Methods/unescape

Материал из Web эксперт
Перейти к: навигация, поиск

"unescape()" Example

    
<html>
<body>
<button onclick="alert(escape("Hello World!"));">Escape function</button>
<button onclick="alert(unescape("Hello%20World%21"));">Unescape function</button>
</body>
</html>



"unescape()" Syntax, Parameters and Note

Note:
Converts URL encoded text back to normal text.
    
Syntax:
    
unescape(param1)
Parameters:
    param1   Required; a URL encoded string.