Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
401 views
in Technique[技术] by (71.8m points)

javascript - 使用JavaScript按下浏览器后退按钮时,重定向到另一个URL(Redirect to another url when browser back button is pressed using javascript)

i want to redirect user to another page when the browser back button is pressed.

(我想在按下浏览器后退按钮时将用户重定向到另一个页面。)

i tried to add event listener but it didnt worked.

(我试图添加事件监听器,但没有成功。)

Please help..Thanks in advance

(请帮助。。在此先感谢)

  ask by Suyash translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...