I'm making a drop down menu for my site and I can't seem to get why this drop down menu isn't launching the pages I want. Can anyone see what the problem is?
Thanks in advance,
bmcc81
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- .dropDown { width:150px; } </style> <script> function goToPage(url) { if (url != "") { .open(url); } } </script> </head> <body bgcolor="#FFFFFF"> <form> <label></label> <select size="5" accesskey="S" onchange="goToPage(this.options(this.selectedIndex).value)" class="dropDown"> <option selected>Please select one</option> <option value="http://search.msn.com/">MSN Search</option> <option value="http://www.google.com/">Google</option> <option value="http://www.search.com/">Search.com</option> <option value="http://www.dogpile.com/">Dogpile</option> </select> </body> </html>