Setting Default Button

Results 1 to 2 of 2

Thread: Setting Default Button

  1. #1
    Join Date
    Dec 1969

    Default Setting Default Button

    Is it possible to set the default button on a form using VBScript or JavaScript? I have a form that has 6 buttons on it that all call java functions when pressed. The problem is that when the page loads, none are set to default. I need the default button to vary based on some info the page retrieves from a database but all I have read points to the fact that is has to be the submit button to be the default. I tried using the document.form1.buttonname.focus() but that doesnt appear to be a valid method for a button object.<BR><BR>Any ideas?<BR><BR>Thanks.

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default What should the "default" button do

    if you want it to submit the make all of the buttons and what you want as default the submit button<BR><BR><BR>

Posting Permissions

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