My picture button won't work

Results 1 to 2 of 2

Thread: My picture button won't work

  1. #1
    Join Date
    Dec 1969

    Default My picture button won't work

    Hi!<BR><BR>I&#039;m sure I&#039;ve done this before but I seem to have a mental block this time. I&#039;d like my form to have a submit button that is an image. I placed the picture inside the form and then surrounded the img tag with an anchor tag with this href:<BR><BR>href="JavaScript: document.formName.submit()"<BR><BR>When I click my picture, I get a client side error that reads "object doesn&#039;t support this property or method".<BR><BR>Can anyone ascertain what I&#039;m doing wrong and how to correct it?<BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default Show actual code...

    ...and be careful about your spelling, since JS is case sensitive.<BR><BR>You could also try this variation:<BR><BR>&#060;A HREF="#" onClick="document.formName.submit(); return false;"&#062;<BR>&#060;IMG SRC="whatever.jpg"&#062;<BR>&#060;/A&#062;<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