• I need some help to perform what I believe is a simple task.

    I have a plugin running that uses a database and url options to determine the final part of a link for a referral program. It is basically an auto rotator.

    I want to open the link automatically in a new window, i.e., execute a “popup” of the target website so the visitor doesn’t HAVE to click on the appropriate link since it will open automatically.

    The plugin (named ‘raleighs’) currently uses the following line to write the target URL on the page:

    <p> <a href="...trgtsite.../join.php?id=<?php print $next_sponsor; ?>" target="_blank"><?php _e( 'Join Now', 'raleighs' ); ?>
    <?php _e( 'Additional Info:', 'raleighs' ); ?>

    How can I get this same link to open in a new window/tab without being clicked on? This will only happen when the plugin is run when the page is loaded.

    If you want to see the actual page for yourself the address is:
    https://www.powerteamz.com/join_en

    Thanks,
    Raleigh

Viewing 1 replies (of 1 total)
  • Any pop-up which was not click by user will be block by the browser pop-up blocker.

    If you would still want to proceed, you can use javascript to trigger a click event when the page loads. You can search on Google using the term ‘javascript trigger click event on page load’.

Viewing 1 replies (of 1 total)
  • The topic ‘How to open a new window when a page is opened’ is closed to new replies.