Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling a function from an image inplace of a submit...........

Status
Not open for further replies.

estesflyer

Programmer
Dec 19, 2000
284
US
this is what i have, but it keeps saying "object doesnt support this property or method".

<INPUT TYPE=&quot;image&quot; SRC=&quot;login.bmp&quot; BORDER=0 ALT=&quot;Login&quot; onClick=&quot;login()&quot;>
 
this worked for me in IE5.5:

<script>
function login()
{
alert('j')
}
</script>

<INPUT TYPE=&quot;image&quot; SRC=&quot;login.bmp&quot; BORDER=0 ALT=&quot;Login&quot; onClick=&quot;login()&quot;> jared@aauser.com
 
well, i found my problem, it wouldnt work when i named my function login, but it worked when i named it anything else, and it even worked when i named it Login!!
wierd eh?

- Rusty
 
Apparently &quot;login&quot; is a reserved word.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top