SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot matches's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onclick not function on outbound link

    Is there a reason why ConversionCount() does not call on the outbound link below, but does with # link?

    Outbound
    Code:
    <a onclick="return ConversionCount();" rel="nofollow" target="_blank" href="http://www.outboundurl.com">TEST</a>
    on site:
    Code:
    <a onclick="return ConversionCount();" href="#">TEST</a>
    Thanks for any help

  2. #2
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The following works well for me in IE:

    Code:
    <script type="text/javascript">
    function ConversionCount()
    {
    	alert('asdf');
    	return true;
    }
    </script>
    <a onclick="return ConversionCount();" rel="nofollow" target="_blank" href="http://www.outboundurl.com">TEST</a>
    I'm creating trouble-free Apache, PHP, MySQL installer, WITSuite,
    and use it to setup my development environment.
    Demo, support, contact. Questions?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •