By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,462 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,462 IT Pros & Developers. It's quick & easy.

Problem with back button.

P: 21
Hi to all of you,

When we back, then not go previous page
What this wrong with this coade, plz help me.
onclick="javascript: history.go(-1);"
OR
onclick="javascript: history.back();"

thankyou

Records
Anis Ahmad
Oct 6 '06 #1
Share this Question
Share on Google+
7 Replies


10K+
P: 13,264
Hi to all of you,

When we back, then not go previous page
What this wrong with this coade, plz help me.
onclick="javascript: history.go(-1);"
OR
onclick="javascript: history.back();"

thankyou

Records
Anis Ahmad
Use history.back();
Oct 6 '06 #2

P: 21
Hi to all of you,

what is wrong with thi code, when we back previous page then its not go.
code is

onclick="history.back();"
OR
onclick="javascript: history.back();"
OR
onclick="javascript: history.go(-1);"
OR
onclick="history.go(-1);"

like:
<input type="image" src="images/back.gif" name="back" onclick="javascript: history.go(-1);">

we use all above code.
plz tell me.

Thankyou.
Oct 6 '06 #3

10K+
P: 13,264
Hi to all of you,

what is wrong with thi code, when we back previous page then its not go.
code is

onclick="history.back();"
OR
onclick="javascript: history.back();"
OR
onclick="javascript: history.go(-1);"
OR
onclick="history.go(-1);"

like:
<input type="image" src="images/back.gif" name="back" onclick="javascript: history.go(-1);">

we use all above code.
plz tell me.

Thankyou.
No need to create multiple threads for the same question
use onclick="history.back();"
Oct 6 '06 #4

ronverdonk
Expert 2.5K+
P: 4,258
DO NOT DOUBLE POST!!!
IT IS ANTI SOCIAL BEHAVIOUR AMD COULD RESULT IN NOBODY READING YOUR THREADS ANYMORE!!

Ronald :cool:
Oct 7 '06 #5

ronverdonk
Expert 2.5K+
P: 4,258
DO NOT DOUBLE POST!!!
IT IS ANTI SOCIAL BEHAVIOUR AMD COULD RESULT IN NOBODY READING YOUR THREADS ANYMORE!!

Ronald :cool:
Oct 7 '06 #6

P: 12
i have had this problem with IE. if you are still having this problem, it could be because the form is trying to submit when you click on your button. image type input is handled the same as a submit button in IE. try doing something like:

<a href="javascript:history.back();"><img src="images/back.gif"></a>

or even put do an onclick in the <a> tag.

hope this helps.
Oct 9 '06 #7

P: 21
Thanks to all of you.
regards
anu2007
Oct 10 '06 #8

Post your reply

Sign in to post your reply or Sign up for a free account.