problem with history.back()

Results 1 to 3 of 3

Thread: problem with history.back()

  1. #1
    tejas Guest

    Default problem with history.back()

    i am trying to go to the previous document in history on click of a close button.<BR>on button click i am calling a function,<BR>function close_click()<BR>{<BR> history.back();<BR>}<BR><BR>but this is not is just refreshing the current page and keeps adding the page into the history list.whats my mistake?

  2. #2
    Join Date
    Dec 1969

    Default RE: problem with history.back()

    if you&#039re using a &#060;a href&#062; you&#039ll possibly need to return false from the function<BR><BR>or use &#060;a href="javascript:self.history.go(-1)"&#062;link&#060;/a&#062;<BR><BR>j

  3. #3
    Join Date
    Dec 1969

    Default RE: problem with history.back()

    OR if you are doing this via a submit-button, change the type to "button".<BR><BR>Bart.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts