Created
July 16, 2009 16:10
-
-
Save tjp/148505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>Y.on w/o nodelist</title> | |
<script type="text/javascript" src="http://yui.yahooapis.com/3.0.0b1/build/yui/yui-min.js"></script> | |
</head> | |
<body class=" yui-skin-sam"> | |
<h1>hello world</h1> | |
<div class="exampleIntro"> | |
test | |
</div> | |
<script type="text/javascript"> | |
YUI().use('node', function(Y) { | |
Y.on('click',function(e) {alert('click happened');}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment