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
Which function would you use to determine the length of a string in php?
Declare a new variable in php equal to the number 3;
Does session expire on closing browser?
When do sessions end?
What is the difference between array_map () and array_shift ()?
What is needed to be able to use image function?
How do you call a constructor for a parent class?
Which is the correct way to check if a session has already been started ?
write a note on Testing the web site
Explain Creating and Naming an Array?
Applications written to provide a GUI shell for Unix and Linux are called
What is the Default syntax used in PHP?
Which cryptographic functions in php returns the longest hash value?
What are the methods useful for method overloading?
How is it possible to return a value from a function?