Activity Stream
48,167 MEMBERS
61045 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 9 of 9
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Question 2 functions 1 onclick ?

    Hi !
    I am coming with a question again

    I use onclick="this.onclick=function(){return false;}"

    And it works for me ... But what about if i want another function for onclick ?
    I tried onclick="this.onclick=function(){return false;};this.title=TEST"
    to change the title,but doesn't works. Also tried onclick="this.onclick=function(){return false;this.title=TEST;};" but this time does not work the first function too...

    Any suggestions.
    Porsche_maniak Reviewed by Porsche_maniak on . 2 functions 1 onclick ? Hi ! I am coming with a question again :D I use onclick="this.onclick=function(){return false;}" And it works for me ... But what about if i want another function for onclick ? I tried onclick="this.onclick=function(){return false;};this.title=TEST" to change the title,but doesn't works. Also tried onclick="this.onclick=function(){return false;this.title=TEST;};" but this time does not work the first function too... Any suggestions. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    onnclick="this.onclick=function()"

    function () {
    first_function();
    second_function();
    }
    first_function() {
    do something
    }
    second_function() {
    do something
    }

  4.     
    #3
    Member
    Website's:
    maxneeds.info
    I've tried this and it does not works in my example.. Other ways ?

    Thanks anyway

  5.     
    #4
    Respected Developer
    Website's:
    PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.org
    How about using unobtrusive js for a change?

  6.     
    #5
    Member
    Website's:
    maxneeds.info
    You mean by getelementbyid ?
    And maybe the thing i am trying to do is ..

    if clicked once => change title

  7.     
    #6
    Member
    Website's:
    maxneeds.info
    I am searching for other solution but now php problem comes out.

    I must use
    Code: 
    echo ('<iframe onload="alert('Thank Added !')" frameborder=0 scrolling=no width=0 height=0 name=thanks></iframe>"');
    But because there are 2 type of quotes ('' and "") php gives error.And if i remove one of them the alert doesn't show. Any help ?

  8.     
    #7
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    echo ('<iframe onload="alert(\'Thank Added !\')" frameborder=0 scrolling=no width=0 height=0 name=thanks></iframe>"');

  9.     
    #8
    Member
    Website's:
    maxneeds.info
    Thanks you are godlike

  10.     
    #9
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    Generally onclick javascript is just annoying unless it is really needed, i think thats also what dman meant.

    Like a lot of sites use it to create popups, ads, etc.
    Though it has been used in (badly coded?) scripts to execute ajax requests.
    Projects:
    WCDDL - The Professional DDL Script
    Top Secret Project: In Development - ZOMG
    ImgTrack - Never Have Dead Images Again!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. (VB6) Using functions
    By JasonCairns in forum Web Development Area
    Replies: 0
    Last Post: 10th Jan 2012, 01:10 PM
  2. [For Hire] PHP Functions
    By _Vick in forum Completed Transactions
    Replies: 0
    Last Post: 3rd Dec 2011, 10:28 AM
  3. (help) Onclick=PopUnder
    By xtremex in forum Technical Help Desk Support
    Replies: 0
    Last Post: 26th Sep 2011, 04:04 AM
  4. Onclick, display hidden script
    By AlexXxuTzZu in forum Web Development Area
    Replies: 1
    Last Post: 20th Aug 2011, 08:53 PM
  5. onclick open on the same tab
    By Hillside in forum Technical Help Desk Support
    Replies: 1
    Last Post: 18th Mar 2011, 11:21 PM

Tags for this Thread

BE SOCIAL