HI FRIENDS,

I am trying to call a javascript function through onclick of a button .I find it not working

pleas tel me how to cal a js function onclick .Here is my coding for button.

$form['keywords']['add'] = array (
     '#type' =>'button',
     '#value' => ADD,
     );

when I saw the view source its coming like a submit button.I don want my form to be submit on this button click.

<input type="submit" name="op" id="edit-nodewords-keywords-add" value="ADD"  class="form-submit" />

pleas tel me how to use as just a button for onclick not as submit

 button


Regards
Ram Prasath



The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.