How To Keep URL From Showing in Task Bar

Discussion in 'HTML & Website Design' started by mrjonman, Oct 14, 2009.

  1. #1
    Hello All,

    When you have a hyperlink like <a href="http://YourSite.com">Click Here</a>, when you hover over it the YourSite.com url shows up in the task bar.

    I have a ClickBank product for sale and right now, it's easy to get the information you need to steal the commission by hovering over the Buy Now link. My merchant code is visible in the task bar and anyone can grab the commission with that. information.

    This code used to do what I want but it doesn't work with the current browsers.

    <a href="https://YourWebsite.com" onMouseOut="window.status=''; return true" onMouseOver="window.status='Buy a Widget Now'; return true" target="_blank">Click Here</a>

    It would read "Buy a Widget Now" in the taskbar instead of the URL.

    Does anyone know how to do this with modern browsers?

    Thank you

    John Mann
     
    mrjonman, Oct 14, 2009 IP
  2. MhW

    MhW Active Member

    Messages:
    370
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    85
    #2
    There are probably better ways than the ones I'm about to suggest, but here are just a few ideas I've just thought of.

    1) HTML push button link, it's not W3C Compliant but works on Modern Browsers (Tested Firefox 3.5 / IE8)
    <form>
    <input type="button" value="Buy a Widget now" onclick="window.location.href='http://www.google.co.uk'">
    </form>
    Code (markup):
    2) Automatically redirect users from a different page, eg:
    <a href="buy-widget.php">Buy a widget now</a>
    Code (markup):
    buy-widget.php file:
    <?php
    header( 'Location: http://www.referral-links.com?ref=2323' ) ;
    ?>
    PHP:
    If using the second method, make sure nothing appears on the page before the code. Safest bet is to remove everything on the page except the redirect code itself. Not 100% sure if the second method will work, maybe the commission site you're using requires clickthroughs directly instead of tracking referring sites.
     
    MhW, Oct 14, 2009 IP