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
Can we override static method in php?
Are there regular expressions in php?
What are the uses of implode() function?
Which is better wamp or xampp?
Does exist in php?
How to connect to mysql from a php script?
What is php destruct?
How the values are ordered in an array?
How do I start a php session?
What is the difference between pop3 IMAP and MAPI?
How to remove the new line character from the end of a text line in php?
What is difference between ksort() and usort() functions.
What is the php function that removes the last element of the array and returns it?
What is use of header() function in php?
What is the difference between array_pop() and array_push()?