(一).示例图片效果
(二).代码
<html>
<head>
<title>escape()和unescape()函数的使用方法</title>
</head>
<body>
<script language="javascript">
function run()
{
alert("The esacpe value is:"+escape(document.form1.input1.value));
alert("The unesacpe value is:"+unescape(escape(document.form1.input1.value)));
}
</script>
<form name=form1>
<input type="text" name="input1" size=20 value="12320%456">
<input type=button name=click1 value="show escape value" onclick="run()">
</form>
</body>
</html>