简体   繁体   English

自动返回上一页

[英]Go back automatically to previous page

is there any solution to go back to previous page automatically without reloading the previous page? 有什么解决方案可以自动返回上一页而不重新加载上一页吗?

I have index.php page full of jquery dropdown list, and after last dropdown list, there is a form to edit data. 我的index.php页面充满了jquery下拉列表,在上一个下拉列表之后,有一种用于编辑数据的表单。 After editing data and successfully added to database I want to go back to index.php without losing selected dropdown list before. 编辑数据并成功添加到数据库后,我想回到index.php而不丢失之前的选定下拉列表。

I try meta http-equiv refresh but no luck. 我尝试使用meta http-equiv刷新,但是没有运气。 I also try javascript function to call history.go(-1) after specific time but it seems no work also. 我也尝试使用javascript函数在特定时间后调用history.go(-1),但似乎也没有用。

It can be done if I create a href link to history.go(-1), but I want it to be automatically. 如果我创建指向history.go(-1)的href链接,则可以完成此操作,但是我希望它是自动的。

Any solution for this? 有什么解决办法吗?

history.go(-1) automatically? history.go(-1)自动吗?

Like this? 像这样?

I'm feeling lucky 我感觉我是幸运的

Feel free to connect it to anything, doesn't need to be a button. 随时将其连接到任何东西,不需要一个按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM