roy_sanu
asked on
How to call a html page to a button click
Let us say i have
<form id="editFirst" action="editFirst.html" method="POST">
I want to call by this button below Let me know how that can achieved
<input type="button" value="Main " class="Rights">
Thank you
<form id="editFirst" action="editFirst.html" method="POST">
I want to call by this button below Let me know how that can achieved
<input type="button" value="Main " class="Rights">
Thank you
not able tp copy jabascript function here
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
function clickRights()
{
document.forms[0].submit();
}
<form id="editFirst" action="editFirst.html" method="POST">
<input type="button" value="Main " class="Rights" onClick='clickRights()'>
<input type="button" value="Main " onclick="location.href='editFirst.html';" class="Rights">