Skip to content

Instantly share code, notes, and snippets.

@tjp
Created July 16, 2009 16:10
Show Gist options
  • Save tjp/148505 to your computer and use it in GitHub Desktop.
Save tjp/148505 to your computer and use it in GitHub Desktop.
<!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