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 do you destroy a session?
How do you debug php?
What is die in php?
Why php is used in html?
What are the two main string operators?
What is the difference between the include() and require() functions?
How to calculate the length of a string?
What language is similar to php?
Why php is used with mysql?
What is meant by ‘passing the variable by value and reference' in php?
Is it worth learning php in 2019?
Can I learn php without knowing c?
How to generate a character from an ascii value?
Explain about the $_GET variable of PHP?
The left association operator % is used in PHP for?