Hello all , i have question about how can i go back history once and reload at the same time . thanx for answers .
History back and reload
forgive me if this seems a bit out of turn but, your question makes no sense.
Can you explain what you are tryin gto achieve and i will see if I can offer advice!
I am gonna need to make history back and also refresh page couse the page then i make history back (javascript:history.go(-1)) just picking cache from browsers but dont renew (refresh) the page
soory for english :glare:
Anybody ?
Well, you shouldn't.
When I google "browser back html", the third article link tells you why in the first list item, and the
first article answers the original question (on that page) by stating that you should use javascript:history.go(-1) to retain previously entered information on the previous page, unlike what happens if you go to that page a second time.
Rather create a link to the previous page and call it "Return to previous page and refresh contents". Just don't turn it into a a button/image looking like a browser back button. What you are talking about is NOT going back in history, it's going forward to the same place again.
The results here should be exactly the same as if you consider a video record of your previous birthday. If rewind the video and play it again, I'd expect the exact same things to show every time, unlike if I go to your next birthday party.
To do what you're asking, you can get the previous page, the referrer, through php, like this:
$referer = $_SERVER["HTTP_REFERER"];
You can then pass the $referer variable to a script to dynamically generate a link to go to the previous page. If you do this, the browser will not remember form data. Furthermore, this method will only work to go back one page - for example, if you are on page a, then you go to page b, then page c, then you click your special back button you will be taken to page b, just as intended. If you click it again, though, you will be taken to page c, not page a, because page c was the previous page. Both of these problems can be solved, but would require much fancier php.
Note that "referrer" in $_SERVER["HTTP_REFERER"] is spelled incorrectly - it's supposed to be. Spell it correctly and it won't work.
Ok , i am gonna try all ways tomorrow , and say if it works and if anyone have good idea just post it , thanx :o