Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2003
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    have a button initiate a script

    I know a button can initaite a function like
    onClick="a()" but can clicking a button initiate a scipt and if so how?
    thanks

  • #2
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Hello -

    I'm not sure I understand what you mean. A function is a script in itself that you call when you want it to run. Calling a function IS how you call a script.

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    338
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You may want to refer to this thread for information on the basics of JavaScript.

    Hope that helps!

    Happy coding!
    Last edited by nolachrymose; 12-19-2003 at 01:27 AM.


  •  

    Posting Permissions

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