<html> <body> <button onclick="alert(escape('www.java2java.com'));">Escape function</button> <button onclick="alert(unescape('www.java2java.com%20www.java2java.com%21'));">Unescape function</button> </body> </html>