maxiegary
09-18-2003, 07:12 AM
how do I script an item in a combo box to open another website in a new browser window?
|
Click to See Complete Forum and Search --> : Web Easy Pro maxiegary 09-18-2003, 07:12 AM how do I script an item in a combo box to open another website in a new browser window? requestcode 09-18-2003, 07:19 AM How about this: <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. |