javascript - How to use history.back() -


can following?

window.open(“any url”, “_self”)
history.back()

i want go other page , return previous one, aproach doesn't work. impossible, , history.back() can't used way, because scripts on new page loaded instead of old one? also, tried window.open on 1 page , history other, still doesn't work...

you may use history.go(-1) more effective , generic, , give added advantage go further previous page. thanks


Comments