Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Call to JavaScript functions in events in IE


  • Please log in to reply

#1
comp error

comp error

    Member

  • Member
  • PipPip
  • 15 posts
This is a KNOWN issue, but i can't get a workaround...

This is a VERY simple issue i am having here.
What i am talking about is this:

<input ...{attributes here}... onevent="javascript function name here" />
it never works in internet explorer, but it does in other browsers. Example:
<input type="text" onclick="recalc()" />
doesn't work in IE.
HOWEVER, this DOES work in IE and in other browsers:
<input type="text" onclick="alert('test');" />

I can't make function calls work in IE!

Attached is an example...
And a link to an OLD microsoft knowledgebase issue:
Article ID: 887741 - Last Review: November 12, 2004 - Revision: 2.0
Internet Explorer does not execute code when an event handler is set to directly reference a DOM function ... ...


Thanks in advance,
David D.

Attached File  example.htm.txt   259bytes   244 downloads

Edited by comp error, 12 January 2010 - 01:10 PM.

  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP