| || |
Join Date: Aug 2008
URL Option With Button in HTML
<title>Url Option With Button</title>
function loadPage(list)'user defined function loadPage() called when the user clicks on button
location.href=list.options[list.selectedIndex].value'helps in changing the page from the cuurent to what is selected on the basis of selected index.
<option value="http://www.cnn.com/">cnn'option with address of cnn website
<input type="button" value="load page" onclick="loadPage(this.form.elements)">