0 Replies Latest reply on Feb 23, 2008 10:54 PM by (Avi)

    How to apply event on a button.(JS)

    Level 1
      Hello My name is avi.

      I am trying to create a button which can be used to browse in to the computer using JS. For this i want to create a button first but i am not able to create button at the proper position i want that button should be under cancel button. I am using following script to create a button with label Browse

      Buttons.add("Browse"); But correct format for Buttons.add is
      Buttons.add (layer, at, reference, withProperties); So can anybody tell me what is problem in my script.

      Second problem is i want to create a mouse event which can evoke any function say browse when i click that button.

      Can anybody help me to solve my problem.
      Please help me

      Thank you.