How opening a URL link automatically on page load?


You’ll need to be more specific on what you are trying to accomplish.
If you would like to redirect the user away from your website to another page after viewing for a particular amount of time, you can use javascript added to your header.php file like this :

$(document).ready(function () {
    window.setTimeout(function () {
        location.href = "";
    }, 5000);

or even this :
<meta http-equiv=”refresh” content=”5;url=”/>

with 5000 being 5 second.

Source link