Drop down Link Html Open In New Window | Visual Studio Code

0


<form name="George">
<p><select id="select" onchange="window.open(this.options[this.selectedIndex].value);" size="1"width="350" style=" width: 350px; height:30PX; font-size: 15px;color: #005462;font-weight: bold;" onchange="go()">>
<option value="http://www.cnet.com;" />Select Here
<option 
value="https://www.google.com/" />Link Name1
<option 
value="https://www.yahoo.com/" />Link Name2
<option 
value="https://www.google.com/" />Link Name3
<option 
value="https://www.google.com/" />Link Name4
<option 
value="https://www.google.com/" />Link Name5
<option 
value="https://www.google.com/" />Link Name6
</select></p>
 <script type="text/javascript">
<!--
function go(){
location=
document.George.example.
options[document.George.example.selectedIndex].value
}
//-->
</script>
 

</form>
</!doctype>




Post a Comment

 
Top