|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Problem in javascript:history.back()
Hi,
I am using apage that contains a link and a button. The button uses javascript:history.back() to go back to the previous page. The link opens a website in a new window. The button when clicked takes me back to the original page and the dta entered is intact. However if the button is clicked after clicking on the hyperlink then the data on the original page is lost. Thanks in advance for the help |
|
#2
|
||||
|
||||
|
what data on the original page?
i thought you said there was only a link and a button? does the link go to # with an onclick event to open the window? If so, then the most recent page (After clicking the link to page.html#) would be page.html... try simply pressing the back button of your browser to see if you acheive the same results as your javascript does. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Problem in javascript:history.back() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|