לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

onclick not working

  • 4 תגובות
  • 4 have this problem
  • 13 views
  • תגובה אחרונה מאת uworlds

more options

I was hoping someone could tell me why the onclick coding for the blue "Try a Free Search" button works (allows the click to happen) on www.theatrebuddies.co.za using left-mouse button .... YET on www.theatrebuddies.co.uk the left-mouse button does not work at all and only works using the middle-mouse button ... PLUS it opens in a new tab. This is really strange to me.

The main reason I am using onclick is for the purposes of Google Analytics.

I've just spent hours and hours coding up hundreds of onclick variables only discover this confusion why it works on the .co.za site but not the other one. Is this a Firefox issue?

I was hoping someone could tell me why the onclick coding for the blue "Try a Free Search" button works (allows the click to happen) on www.theatrebuddies.co.za using left-mouse button .... YET on www.theatrebuddies.co.uk the left-mouse button does not work at all and only works using the middle-mouse button ... PLUS it opens in a new tab. This is really strange to me. The main reason I am using onclick is for the purposes of Google Analytics. I've just spent hours and hours coding up hundreds of onclick variables only discover this confusion why it works on the .co.za site but not the other one. Is this a Firefox issue?

פתרון נבחר

You have the following in your ZA but not your UK:

_gaq.push(['_setAllowLinker', true]);

Is that it? Would be an easy fix...

Read this answer in context 👍 2

כל התגובות (4)

more options

פתרון נבחר

You have the following in your ZA but not your UK:

_gaq.push(['_setAllowLinker', true]);

Is that it? Would be an easy fix...

more options

Hey mate! Thank you so much, this absolutely must be correct. I will get it implemented within the next 24 hours and let you know. I can't thank you enough as I spent hours coding up around 100 onclick variables and didn't want to have to roll it all back. Thank you.

more options

Also note that the page source shows a </div> in red (on hover: stray end tag "div")

<div class="login">
<h3>Member Login</h3>
<p>South African members please login by <br /><a href="http://app.theatrebuddies.co.za/login" onclick="_gaq.push(['_link', 'http://app.theatrebuddies.co.za/login']); return false;">clicking here</a></p>
</div>

</div>
</div>  <!-- stray end tag "div" -->

<div style="clear:both"></div>
more options

Thank you jscher2000 you were perfectly on the money! I REALLY appreciate your advice and for replying so quickly. Best regards.