Solved

Events available for YAHOO.util.Event.addListener

Posted on 2008-10-03
1
2,387 Views
Last Modified: 2008-11-18
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
Comment
Question by:saturation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
LordOfPorts earned 500 total points
ID: 22638222
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question