Grow your CSS skills. Land your dream job.

help on event handler,onClick please ???

  • # June 5, 2008 at 1:54 am

    Hi all,I’m building a site for a client.Even though the result has been encouraging but not satsfactory.
    Here is what’s happening:I have an anchor calling a two function with only one onClick.At the result,the hand sign for ‘ href ‘ is lost and Now i’m using the pointer mouse.
    But,I’m shur for a customer ,it doesn’t do good.
    So could you help me in to how I can work around with both ‘ href ‘
    and onClick.Thank you very much.

    Here is an code,for hints and ideas :-

    <td class="con"><a class="border" onClick="opa_me(‘opa_bg’);gotoProduct(‘product_obama’)"><img width="100px" src="../Da_web/images/golden_sky.jpg" border="0"/></a>
    </td>

    .V1
    # June 5, 2008 at 7:47 am

    <a href="#" onclick=’function();function();return false;‘ > .. </a>

    # June 5, 2008 at 9:36 am

    Hi V1,thank you so much.It really worked.just like i wanted it.Brilliant.
    But I want to ask you why ‘ return false’ instead of ‘return true’.
    Even when I retype as ‘return true’ still works.could you explain for me please???

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".