Using the Browser History for a Universal ‘Go Back’ Link


Back to previous page with a link

<a href=”javascript:history.go(-1)”> GO BACK </a>

—————————————————————————————————————————————————–
Instructions:
—————————————————————————————————————————————————–

Paste the JavaScript snippet above into your page wherever you want the go-back link to appear.

When the visitor clicks on the link, it will return to whatever page the visitor was on last.

You can substitute your own text, or an image, for the GO BACK in our snippet above.

If you have any query then feel free to contact me at Jainish Senjaliya

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s