|
Helping ordinary people create extraordinary websites! |
Redirecting URLBy Amrit Hallan2005-06-01
Redirecting URL Whenever you want to generate dynamic pages you often have to resort to using some server side scripting language such as PHP or ASP. But let us assume that there are only three or four pages that could be chosen from a drop-down menu (a combo-box). The following procedure helps you create a JavaScript-supported drop-down menu. First the form: <form name="pages"> This form presents to you three choices of pages. In its onChange attribute we decide what function to call to be re-directed to the respective page. And now the JavaScript: <script language="javascript"> Different browsers support different things so quite often you have to check what browser the user is using. The page redirection command is used accordingly. Tutorial Pages: » Redirecting URL |
|