meta refresh onload history.go

Results 1 to 2 of 2

Thread: meta refresh onload history.go

  1. #1
    Margaret Widholm Guest

    Default meta refresh onload history.go

    Ok, I&#039ve been trying to get this to work onload:<BR>&#060;meta http-equiv="refresh" content="3;URL=javascript:history.go(-1)"><BR>Now, this works in explorer, but not in Netscape:( I&#039ve also tried history.back and that&#039s not working either... If anyone could help that&#039d be great- thank you.

  2. #2
    Chris Willey Guest

    Default RE: meta refresh onload history.go

    Rather than use a meta tag, just use a Javascript function:<BR><BR>function goBack() {<BR>history.go(-1);<BR>}<BR><BR>Then call that function in the body onload event handler:<BR><BR>&#060;body onload="goBack()"><BR><BR>Seems like a weird thing to do, though ;-)

Posting Permissions

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