HTML Code to forward from one page to the nextpage.html

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
User avatar
KingSparta
 
 
Posts: 269
Joined: Tue Dec 08, 2020 6:00 pm
Location: Earth
Contact:

HTML Code to forward from one page to the nextpage.html

Post by KingSparta »

Code to count down from 10, and then go to another page called "Nextpage.html"

Code: Select all

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="10;url=nextpage.html">
<style>
    body {
        text-align: center;
    }
</style>
</head>
<body>
    <h1>Redirecting to next page in <span id="countdown">10</span> seconds...</h1>
    
    <script>
        var countdown = 10;
        var timer = setInterval(function() {
            countdown--;
            document.getElementById('countdown').textContent = countdown;
            if (countdown <= 0) {
                clearInterval(timer);
            }
        }, 1000);
    </script>
</body>
</html>
Retired military with Airborne, Air Assault, and Flight Wings. Enjoys model trains, the internet, and ham radio. Located in Fayetteville, NC, USA. Avatar created by AI.
https://MyAAGrapevines.com
https://CenterCityBBS.Com (Grupo Chat, & Forum)
User avatar
BaconFries
 
 
Posts: 5640
Joined: Thu Aug 16, 2007 7:32 pm

Re: HTML Code to forward from one page to the nextpage.html

Post by BaconFries »

Are you offering this or looking for help? If offering you can post at the following:WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
User avatar
KingSparta
 
 
Posts: 269
Joined: Tue Dec 08, 2020 6:00 pm
Location: Earth
Contact:

Re: HTML Code to forward from one page to the nextpage.html

Post by KingSparta »

offering, I must have missed that one.
Retired military with Airborne, Air Assault, and Flight Wings. Enjoys model trains, the internet, and ham radio. Located in Fayetteville, NC, USA. Avatar created by AI.
https://MyAAGrapevines.com
https://CenterCityBBS.Com (Grupo Chat, & Forum)
lummis
 
 
Posts: 217
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: HTML Code to forward from one page to the nextpage.html

Post by lummis »

Am I missing something, as this can be achieved by going to Page Properties, Miscellaneous Tab and using Redirect.
User avatar
KingSparta
 
 
Posts: 269
Joined: Tue Dec 08, 2020 6:00 pm
Location: Earth
Contact:

Re: HTML Code to forward from one page to the nextpage.html

Post by KingSparta »

it also has a displayed count down from 10 seconds
Retired military with Airborne, Air Assault, and Flight Wings. Enjoys model trains, the internet, and ham radio. Located in Fayetteville, NC, USA. Avatar created by AI.
https://MyAAGrapevines.com
https://CenterCityBBS.Com (Grupo Chat, & Forum)
Post Reply