Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to jump after five seconds by php

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how php can jump after five seconds, I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.

Php to achieve five seconds after the jump method: 1, to create a success.php operation success page; 2, to create an error.php operation failure page; 3, through "playSec (5);" to achieve the jump after five seconds.

This article operating environment: Windows7 system, PHP7.1 version, Dell G3 computer.

PHP automatically jumps to a page after 5 seconds:

History.go (- 2); / / javaScript code, back two pages.

SetTimeout ("playSec (" + num+ ")", 1000); / / JavaScript code, timer, calling the playSec () function a second later.

Success.php operation success page

Error.php operation failed page

1. Success.php operation success page

The operation succeeded * {margin:0px;padding:0px;} .box {width:450px;border:1px solid # f0f0f0f 0f 0f 0f 0 } the operation succeeded

Tip:

The system will jump automatically after 3 seconds. If you don't want to wait, please click

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report