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

0


<form name="George">
<p><select name="example" size="1"width="350" style=" width: 350px; 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>




\

Post a Comment

 
Top