Go back to previous and next page onClick in browser using Javascript | 2my4edge

17 November 2013

Go back to previous and next page onClick in browser using Javascript

Sometimes this script may very useful to every web designers, go back to previous or next page in browser using javascript. here we are going to see how make, go back to previous and next page onclick in browser using javascript. let see the simple code.
go-back-to-the-previous-next-page-in-browser
DOWNLOAD        LIVE DEMO          NEXT PAGE

CODE

<a href="#" onclick="history.go(-1); return false;"> 
Click here to Go back to the Previous page </a> 
<a href="#" onclick="history.go(+1); return false;">
Click here to Go to the Next page </a>

the above simple code make the previous and next page location onClick. history.go(-1); is make go back one time back. similarly we can make change any number, as we need, where to go and how page back. that's what the number mentioned. history.go(+1); is make go to next page in browser.

we can make this in input button also, there also we want to make Onclick function.

i hope this post is very useful to everyone. thank you.  


RELATED POSTS:





9 comments:

  1. Currently it sounds like Wordpress is the top blogging platform out there right now.
    (from what I've read) Is that what you're using on your blog?

    ReplyDelete
  2. These are actually impressive ideas in concerning blogging.
    You have touched some fastidious things here.
    Any way keep up wrinting.

    ReplyDelete
  3. Hi my name is Berry. Few days ago. i published a article about the best gynecological clinic
    address in Hanoi. Hope you read and feedback your review to me.

    Tks. Here is my article link: http://bit.ly/2STmuTE

    ReplyDelete
  4. hi, i am Kurtis. Few day ago, i published a great article
    about phu khoa. I think it will be usefull for you now.

    So if it is right, i can read my article at here:

    ReplyDelete
  5. Hi my name is Madge. Few days ago. i published a article about the best gynecological clinic address
    in Hanoi. Hope you read and feedback your review to me. Tks.
    Here is my article link: http://bit.ly/2STmuTE

    ReplyDelete
  6. Hi my name is Bailey. Few days ago. i published a
    article about the best gynecological clinic address in Hanoi.
    Hope you read and feedback your review to me. Tks. Here is my article link:
    http://bit.ly/2STmuTE

    ReplyDelete
  7. What's Going down i am new to this, I stumbled upon this I have found It absolutely helpful and it has aided me out loads.
    I hope to give a contribution & help other customers like its aided me.
    Great job.

    ReplyDelete
  8. Hi my name is Sienna. Few days ago. i published a article
    about the best gynecological clinic address in Hanoi.
    Hope you read and feedback your review to me. Tks. Here is my article link: http://bit.ly/2STmuTE

    ReplyDelete
  9. Hi there colleagues, fastidious paragraph and good urging
    commented at this place, I am genuinely enjoying by these.

    ReplyDelete

^