I have a hidden input in my page which has a default value of 0. I am changing the value of this input in my Javascript code.
when i try to refresh the page with ctrl + r, f5 and ctrl + f5, when i use ctrl + r and f5 after refreshing the value of hidden input changes to the last value in my javascript function. but if i use ctrl f5 the value of hidden input becomes the default value which is 0.
I am trying to avoid this situation and i want hidden input returns to the default value after refreshing with all the methods possible. Is this possible without using client side scripting?
I have a hidden input in my page which has a default value of
Share
it is imposible. You need to use javascript to remember it. Maybe you can pass this variable to cookies by javascript.
look here maybe http://www.quirksmode.org/js/cookies.html