How can we submit a form without a submit button?
Answer Posted / himanshu
function nav()
{
var w = document.myform.mylist.selectedIndex;
var url_add = document.myform.mylist.options[w].value;
window.location.href = url_add;
}
// This code is placed in the HTML body
<FORM NAME="myform">
Jump to:
<SELECT NAME="mylist" onChange="nav()">
<OPTION VALUE="../../index.html">Home Page
<OPTION VALUE="../../basics/index.php3">Basics
<OPTION VALUE="../../tutorials/index.php3">Tutorials
<OPTION VALUE="../../templates/index.php3">Web Design Templates
<OPTION VALUE="../../graphics/index.php3">Web Graphics Design
<OPTION VALUE="../index.php3">Tips and Tricks
<OPTION VALUE="../../design/index.php3">Web Page Design
<OPTION VALUE="../../services/index.php3">Services
</SELECT>
</FORM
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
How does firefox manage cookies?
What is properties of class?
Explain mysql_errno()?
What are constructor and destructor in PHP?
How can you pass a variable by reference?
How big is nvarchar max?
How do I know my xampp version?
What is php key?
How do I display php errors?
What is php form validation?
Explain how is it possible to set an infinite execution time for php script?
Is php pass by reference or value?
What is the function mysql_pconnect() useful for?
Explain briefly about a search-friendly site looks like?
What is the output of the following php code?