.
(that we’re creating on the fly) to the event.
{ return Count(this,’desc’) }; – “Count” is the name of a function; we’re passing two parameters in this example: the object itself (“thefield”) and a character string “desc”. This will return the result of the function.
Here is a full source, simplified example. In this example, every time the user releases a key in the textarea, a JavaScript alert box will indicate the length of the entered text.
Keep in mind that this very basic example does not account for more complex real world scenarios, like limiting the number of characters. If you need help with more complex scenarios, be sure to contact us.
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
Hi man, thx for this, it was really helpfull. I was dumb cant figure out this:)
Super cool…
Hi ,
Its good to know that and I am looking for more advanced thing.
for example if the event it is already attached by some sort of software that we dont have access to those codes but we are using by including to our scripts and then we want to attach our custom event and at the same time having the old event.
how we can override that event for example onkeyup to do our action and then calling the old function.
Many Thanks
Hello, I came across this article while searching for help with JavaScript. I’ve recently changed browsers from Safari to Microsoft Internet Explorer 5. After the change I seem to have a issue with loading JavaScript. Everytime I go on a site that needs Javascript, my browser does not load and I get a “runtime error javascript.JSException: Unknown name”. I cannot seem to find out how to fix it. Any aid is very appreciated! Thanks
Paul – we’re betting you’re running an old Mac that’s not capable of running a new browser. The short version is, no one supports IE5 for Mac any longer. It’s an antiquated browser, with a 13 year old rendering engine. You’ll probably have other rendering problems throughout the web. If you’re computer is capable, we strongly suggest you upgrade to the latest version of Safari for Mac.