+ 2
Regarding web site
The sequence is index1 to index2 to index3... All three are web pages.. On back click on index3 browser I don't want to go to index2 nor index1... I want to clear everything...
4 Respostas
+ 2
with php yes but it will be all sorts of redirects. the way a browser handles the back button isnt the same when it comes to coding. you cant really control that. that is something google controls if its google chrome. that is how i understand it.
+ 1
define clear everything? you could make a blank.html page and point it to there.
+ 1
Killian Fortman is there way to go to parent of parent page on back click of browser button
+ 1
One option could be(I haven't tested yet) that in index2, you put a hyperlink to page
myhomepage?redirect=index 3.html
with target _blank to open it in a new tab.
And use JavaScript to call the window.close() function to close the tab.
In the myhomepage, you could write the code to redirect to a page if the redirect is in the url, or display the normal page.
Thus, the myhomepage will redirect to index3 and when the user presses back he will getback to myhomepage and no more pages to go back. :)
Hope that helps...