Friday, 15 January 2010

php - How to go on previous address if i opened page in new tab or directly accessed -



php - How to go on previous address if i opened page in new tab or directly accessed -

i have results page like

http://www.test.com/search

and search results info

http://www.test.com/search/a http://www.test.com/search/b http://www.test.com/search/c

now want, if accessing page http://www.test.com/search/a straight in browsers address bar previous link should refer http://www.test.com/search

even if opened search results page http://www.test.com/search/a new tab should refer http://www.test.com/search on click previous link

note : javascript:history.go(-1) not working in issue.

thankfully not possible do. if every site had ability hijack browsers' , forwards buttons net pretty horrible place. in fact security feature browser not allow this.

i cannot think of end such means required, if reaching /search of import navigation/ux route user /search default unless they've submitted query there.

php javascript session cookies

No comments:

Post a Comment