August 1999
Intermediate to advanced
1488 pages
72h 53m
English
redirect(URL)
The redirect function is a top-level function that is not associated with any core object. This function is used to redirect the requesting browser to the URL it was passed as a parameter.
Note
Use the addClient function to preserve client object properties and their values.
Listing 8.101 checks to see if the browser asking for the page is Internet Explorer. The redirect function is then used to redirect the browser accordingly.
<SERVER> // Check to see if the browser is Internet Explorer if(request.agent.indexOf('MSIE') != -1){ redirect(addClient("/iepages/index.html")); // Redirect to another page if it is not ... |
Read now
Unlock full access