0

I have appended some lists to a div by Ajax and i play any one video from the list by redirect on other page.Now when i come back to that page means i click on browser's back button then that lists are lost.So how can i prevent them to loss by java script or vb.net

Mahaveer
  • 1
  • 1

1 Answers1

1

If you're leaving the page you'll want to store the values in some way. Here are a few methods you may want to consider.

Session Storage

https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage

Local storage

http://www.smashingmagazine.com/2010/10/11/local-storage-and-how-to-use-it/

Cookies

How do I set/unset a cookie with jQuery?

DeFeNdog
  • 1,156
  • 1
  • 12
  • 25