funbinod Posted May 3, 2014 Share Posted May 3, 2014 can information of a page be grabbed clicking on which, current page is opened? like=> if i clicked 'page2.php' link on 'page1.php', then i wish to get 'page1.php' information on 'page2.php'...... Link to comment Share on other sites More sharing options...
davej Posted May 3, 2014 Share Posted May 3, 2014 The referrer? https://developer.mozilla.org/en-US/docs/Web/API/document.referrer Link to comment Share on other sites More sharing options...
funbinod Posted May 4, 2014 Author Share Posted May 4, 2014 something like that. for example => on page3 , i want to use this--- if ( redirected from page1 ) { retrive some string from page1; } if ( redirected from page2 ) { retrive some string from page2; } Link to comment Share on other sites More sharing options...
davej Posted May 4, 2014 Share Posted May 4, 2014 You might also be able to use the URL similar to GET. Also if you have established a session you will know the history. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now