0

guys i have for buttons in html form...edit, back, submit, reset but the problem is how to go back to previous page....i m performing this using onlick event but not working...
my code is....

<form method="post" action="" enctype="" name="Qform" onsubmit="return validateForm(this); ">

<div class="centerform" >
<div id="divbox">
<label  id="label">Name : </label>
<input id="input" type="text" name="txtPGrade" onBlur="validate(this.form.txtPGrade.value,'txtPGrade');"/>
<label id="CName">Invalid Data</label> 

</div>



<hr>

<input class="button" type="submit" name="btnsubmit" value="Edit" style="margin-left:150px;">


///here i want to perform back action to previous page..

<input class="button" type="button" name="btnBack" value="Back" style="margin-top:-150px; " onClick= "Job_PayGrades_Add.php">

waiting for solution...
regards..
Farhad

3
Contributors
3
Replies
6
Views
4 Years
Discussion Span
Last Post by Farhad.idrees
1

You should be able to use the history.go or history.back method.

window.history.back();
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.