Getting Last Visited Page in PHP/JS

It is very common that we browse through no of pages and each visited page has the button which takes the user back to previous link.

Browser’s Back button is good option with static pages but for dynamic pages it doesn’t refreshes the page. So the better option is to

1. Either save the previous link and set that value to action of back button OR

2. Use the Javascript function “window.back()” which returns the last visited address.

th of these techniques not only takes you to the last visited link but will also refreshes page.

— 

Keep Smiling 🙂

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

%d bloggers like this: