dom.html revision 4ed6c4c5fd18811cfc57f26a1c593307d1867746
1423N/A<script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
2026N/A this.setStyle('background-color', 'red');
2286N/A b.appendChild(n);
2026N/A document.getElementById('form1').addEventListener('focus',
2026N/A //node.detach();
2026N/A node.detach('blahblah|*');
2286N/A document.getElementById('text1').addEventListener('focus',
2286N/A el.setStyle('border', '3px solid red');
2286N/A // Y.Event.purgeElement(this, true, 'click');
2286N/A // Y.Event.detach('click', null, this);
2026N/A var buts = Y.Node.all('.button');
2026N/A // }, Y.Node.queryAll('.button'));
2026N/A //}, Y.Selector.query('.button'));
2026N/A var obj = new Y.Event.Target();
2026N/A obj.subscribe('foo', function() {
2026N/A obj.subscribe('foo', function() {
2026N/A obj.subscribe('foo', function() {
2026N/A //if (Object.prototype.hasOwnProperty) {
2026N/A //window.blah ="ad"
2026N/A //alert(window.hasOwnProperty('blah'));
2026N/A //alert(window.hasOwnProperty('document'));
2286N/A //alert(Y.object.owns(window, 'blah'));
2286N/Avar body = Y.Node.get("body");
2026N/A// body.detach("click", handleClick);
2026N/A// handle.detach();
2026N/A // e.preventDefault();
2286N/A alert("You clicked on the second YUI link. Because *preventDefault* was called, this link will not navigate away from the page.");
2026N/AY.Event._attach(["click", function(e) {
2091N/A console.log('native event -->');
2091N/A console.log(e);
2026N/A// Y.Event.onAvailable("#secondA", function() {
2026N/AY.log("When you begin interacting with the example at left, you'll see log messages appear here.", "info", "example");
2215N/A<a href="http://developer.yahoo.com/yui" id="firstA">The YUI Library. (Link navigates away from page.)</a>
2026N/A<a href="http://developer.yahoo.com/yui" id="secondA">The YUI Library. (Link's default behavior is suppressed.)</a>