Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating a Drop Down List Boxes – without Submit Button Dave Pai ICS100 – Spring 2007.

Similar presentations


Presentation on theme: "Creating a Drop Down List Boxes – without Submit Button Dave Pai ICS100 – Spring 2007."— Presentation transcript:

1 Creating a Drop Down List Boxes – without Submit Button Dave Pai ICS100 – Spring 2007

2 Create a simple form with a drop down box

3 Code for Form includes 2 options, a Form Name and a Select onChange Event: Select Page to go to Go to Content 1 page Go to Content 2 page HTML files that you want to Open upon Selection

4 Need to Add some Javascript to your HTML file (usually in the section) function goToNext() { Temp=frmToPage.ToPage.options(frmToPage.ToPage.selectedIndex).value; window.location = Temp; }

5 So your completed file, in code, looks something like this: Untitled function goToNext() { Temp=frmToPage.ToPage.options(frmToPage.ToPage.selectedIndex).value; window.location = Temp; } Simple Form Select Page to go to Go to Content 1 page Go to Content 2 page Name of Form Select Name Name of Form


Download ppt "Creating a Drop Down List Boxes – without Submit Button Dave Pai ICS100 – Spring 2007."

Similar presentations


Ads by Google