The Redirect CGI

The redirect.pl CGI has been provided to help you implement pull-down lists of destinations. Although this can also be done using JavaScript, some browsers fail to execute that correctly.

Here's an example using redirect.pl:

Which looks like this:

Users of frames will probably want to change the first line so that the destination page fills the browser window rather than remaining within the current frameset:


The onchange="submit(); return true" part is JavaScript support for going to the destination as soon as the user makes a selection, rather than requiring them to click on the "GO" button. As the button isn't needed for users who have JavaScript enabled you could hide it for those users by wrapping it in <NOSCRIPT> tags:

Which looks like this (try using this list with JavaScript enabled and disabled in your browser):


[ Lboro Home] | [ Computing Services ] | [ Resources for Information Providers ]


Webmaster@lboro.ac.uk, July 2000.

Copyright © Loughborough University. All rights reserved.