Table of Contents
|
All Slides
|
Link List
|
Examples
|
CSCI E-12
<< previous
|
next >>
Redirect onchange
Example 8.4
Example 8.4 Source:
<form name="JumpTo1" action="" > <div> <select name="GotoURL" onchange="doJump(document.JumpTo1.GotoURL)" > <option value=" " >Select an Apache "How-To/Tutorial"</option> <option value="http://httpd.apache.org/docs/2.2/howto/auth.html" > Authentication, Authorization, and Access Control</option> <option value="http://httpd.apache.org/docs/2.2/howto/cgi.html" >CGI: Dynamic Content</option> <option value="http://httpd.apache.org/docs/2.2/howto/htaccess.html" > .htaccess files</option> <option value="http://httpd.apache.org/docs/2.2/howto/ssi.html" >Server Side Includes (SSI)</option> <option value="http://httpd.apache.org/docs/2.2/howto/public_html.html" > Per-user Web Directories (public_html)</option> </select> </div> </form>
In
script
element (within
head
element):
function doJump(menu) { window.location = menu.options[menu.selectedIndex].value; }
Example 8.4 Demonstrated
Table of Contents
|
All Slides
|
Link List
|
Examples
|
CSCI E-12
<< previous
|
next >>