Page 1 of 1

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

Posted: Thu Jun 13, 2024 3:43 pm
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>

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

Posted: Fri Jun 14, 2024 1:58 pm
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

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

Posted: Fri Jun 14, 2024 5:51 pm
by KingSparta
offering, I must have missed that one.

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

Posted: Sat Jun 15, 2024 5:02 pm
by lummis
Am I missing something, as this can be achieved by going to Page Properties, Miscellaneous Tab and using Redirect.

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

Posted: Sat Jun 15, 2024 11:57 pm
by KingSparta
it also has a displayed count down from 10 seconds