Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

History.back(help please!)

OleOle Member Posts: 16
Hi!

I have a problem. When i click a link on my website it loads two sites (I use frames). Then I should have a back-link that step two steps back. I have tried href="javascript:history.back(2)", but that dont work!
Anyone who can help me?

Thanks!

Comments

  • iDaZeiDaZe Member Posts: 464
    : Hi!
    :
    : I have a problem. When i click a link on my website it loads two sites (I use frames). Then I should have a back-link that step two steps back. I have tried href="javascript:history.back(2)", but that dont work!
    : Anyone who can help me?
    :
    : Thanks!
    :

    history.back() doesn't expect a parameter, it just loads the last URL if you want to move back further, you should use (in this case : history.go(-2)

Sign In or Register to comment.