NSPJikanchi
03-19-2003, 12:38 PM
Ok i know how to make a basic html Form drop down navigation menu with a "go" button, but....I want the webpages to load into a new window. Is that posable?:confused:
|
Click to See Complete Forum and Search --> : Drop Down Navigation Windows? NSPJikanchi 03-19-2003, 12:38 PM Ok i know how to make a basic html Form drop down navigation menu with a "go" button, but....I want the webpages to load into a new window. Is that posable?:confused: requestcode 03-19-2003, 12:45 PM Yes it is possible. Here is an example that uses the onChange event in the select tag to kick off the JavaScript function rather than a "go" button. <html> <head> <title>Drop Down Test</title> <script language="javascript"> function LinkUp(obj) { linkid=obj.options[obj.selectedIndex].value NewWin=window.open(linkid,"win1",config="width=200,height=250,location=no,status=no,directories=no,toolbar=no,scrollbars=no,menubar=no,resiza ble=no,top=30,left=30") } </script> </head> <body bgcolor="lightgreen"> <form name="DropDown"> <select name="DDlinks" onchange="LinkUp(this)"> <option selected>Choose a Link <option value="http://www.htmlgoodies.com"> HTML Goodies</option> <option value="http://www.wsabstract.com"> Website Abstraction</option> <option value="http://www.requestcode.com"> Request Code</option> </select> </form> </body> </html> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |