19 users online (0 members and 19 guests)  


  Results 1 to 3 of 3

Related

  1. Replies: 3
  2. I want my asp form to do 2 functions?    Forum: ASP Forum
    Replies: 2
  3. VBScript Functions    Forum: Website Scripts Forum
    Replies: 1
  4. two functions    Forum: Website Scripts Forum
    Replies: 6
  1. #1
    kveerendrareddy's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2007
    Posts
    11

    can we call 2 functions from a single button?

    can we call 2 functions from a single button using events?

    for eg: <input type=submit value=submit onClick="fun1() & fun2()">
    I know this is blunder, but I think u understand my requirement.
    Is it possible? If it is possible send me the correct syntax....

  2. #2
    alexts's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2007
    Posts
    5

    Re: can we call 2 functions from a single button?

    Quote Originally Posted by kveerendrareddy View Post
    can we call 2 functions from a single button using events?

    for eg: <input type=submit value=submit onClick="fun1() & fun2()">
    I know this is blunder, but I think u understand my requirement.
    Is it possible? If it is possible send me the correct syntax....
    why not make func1 to call func2?

  3. #3
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: can we call 2 functions from a single button?

    You can do it like this:

    Code:
    <input type=submit value=submit onClick="fun1(); fun2()">
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread