₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,346,311 members, 8,522,332 topics. Date: Saturday, 21 November 2026 at 12:34 AM

Toggle theme

Website - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Website (796 Views)

1 Reply (Go Down)

Website by Marlhyk(op): 7:43am On Oct 15, 2019
Guys you know that sometimes when browsing a website we use to be directed to another website like bet9ja so I want to ask what's the code to do it
Re: Website by mikke9: 9:15am On Oct 15, 2019
Javascript will do that
Re: Website by jidotoni(m): 12:51pm On Oct 15, 2019
Javascript. An example
<script>

//tell the browser where to redirect to
var goto = "https://bet9ja.com";

//redirect after 5 seconds
window.setTimeout(function(){
window.location.href = goto;
}, 5000);

</script>

Hope it helps smiley
Re: Website by Nobody: 7:26pm On Oct 15, 2019
let's say for example you want to redirect to www.google.com using PHP, do like this;
inside your php script write

<?php
header('location:https://www.google.com');
?>
Re: Website by Marlhyk(op): 7:20am On Oct 17, 2019
jidotoni:
Javascript. An example
<script>

//tell the browser where to redirect to
var goto = "https://bet9ja.com";

//redirect after 5 seconds
window.setTimeout(function(){
window.location.href = goto;
}, 5000);

</script>

Hope it helps smiley
thanks bro if I use a pay per click ads will I still earn
1 Reply

• 2 • 3 • 4

Algorithms Distort Programming. • Opay Is Bringing Freedom And Security To Everyone In Nigeria • Grammarly Review