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
Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.
Explain Type hinting in PHP?
Explain me what is the w3c?
How do you check if an arraylist is empty?
Explain how is it possible to cast types in php?
How cookies are trported from browsers to servers?
Tell me how to create a session? How to set a value in session? How to remove data from a session?
How can we make a constant in php?
Is php a strongly typed language?
Is it easy to learn wordpress?
How to check an key is exists in array?
What is difference between print and echo in php?
Is session a cookie?
Is php coding easy?
What is the difference between == and === in php?