Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2403
  • Last Modified:

Events available for YAHOO.util.Event.addListener

I am looking for a list of possible events availabe for the YAHOO.util.Event.addListener method, i.e., "click".  I have the following code:

YAHOO.util.Event.addListener("do", "click", function(e) {..........}

but if I try

YAHOO.util.Event.addListener(window, "load", function(e) {........}

it doesn't work when the window loads.  What's going on?
0
saturation
Asked:
saturation
1 Solution
 
LordOfPortsCommented:
Where do you place the code? I placed the code in the snippet below in the <head> of the web page and it properly displayed the alert.
<script type="text/javascript">
YAHOO.util.Event.addListener(window, "load", function(e) {alert("Hello world!");});
</script>

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now