简体   繁体   中英

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. After editing data and successfully added to database I want to go back to index.php without losing selected dropdown list before.

I try meta http-equiv refresh but no luck. I also try javascript function to call history.go(-1) after specific time but it seems no work also.

It can be done if I create a href link to history.go(-1), but I want it to be automatically.

Any solution for this?

history.go(-1) automatically?

Like this?

I'm feeling lucky

Feel free to connect it to anything, doesn't need to be a button.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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