<!DOCTYPE html>
<html>
<body>
<h2>Redirect to a Webpage</h2>
<p>The replace() method replaces the current document with a new one:</p>
<button onclick="myFunction()">Replace document</button>
<script>
/*function myFunction() {
location.replace("https://www.w3schools.com")
}
setTimeout(function ()
{
window.location.href = 'http://www.google.com';
},5000); // 5 seconds */
</script>
</body>
</html>
<!--header('Refresh: 10; URL=http://yoursite.com/page.php'); -->
<button onclick = "setTimeout()">Click to Redirect to Tutorials Point</button>
<?php
// https://www.w3docs.com/snippets/html/how-to-create-an-html-button-that-acts-like-a-link.html
echo "Simulation paiement CB";
header( "refresh:5;url=https://thisinterestsme.com/code" );
?>