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
What is member function?
Which function will you use to create an array?
How do you connet mysql database with php?
How to know user has read the email-php?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
Does php need html?
What are the design patterns in php?
Which cryptographic functions in php returns the longest hash value?
How do you execute a php script from the command line?
Explain some most commonly use string functions in php?
Differentiate between require and include?
What is php's mysqli extension?
How to join multiple strings into a single string?
Tell me what are the correct and the most two common way to start and finish a php block of code?
What is the difference between pop3 IMAP and MAPI?