August 1999
Intermediate to advanced
1488 pages
72h 53m
English
unescape(string)
The unescape() method takes a hexadecimal value and returns the ISO-Latin-1 ASCII equivalent. This method performs the opposite operation of the escape() method and is commonly used to escape user-entered data before form submission.
Listing 6.269 declares a local variable, escapedVal, and passes it to the unescape() method. The result, "@", is then written to the page.
<script language="JavaScript"> <!–– Hide // create a variable var escapedVal = "%40"; // evaluate the variable and place the value in a variable ... |
Read now
Unlock full access