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
getEventListeners( $('input') ); |
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
console.log('Window : ' + window ) // Window : [object Window] | |
console.log('Window : ', window ) // logs correctly the Window object | |
console.log('Window : ', window , 'Object : ', object) // logs everything as expected |
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
monitorEvents( $('input') ); // Logs ALL the events | |
monitorEvents( $('input') , 'click' ); // Logs only click events | |
monitorEvents( $('input') , ['click' , 'blur' ] ); // Logs only click and blur events | |
unmonitorEvents( $('input') ); // Stop loging the events of the specific element |
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
$$('a') // returns all link elements | |
document.querySelectorAll('a') // returns all link elements | |
$$('a') === document.querySelectorAll('a') // true! |
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
$('a') // returns the first link element | |
document.querySelector('a') // returns the first link element | |
$('a') === document.querySelector('a') // true! |
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
<a href="tel:+306948123456">+306948123456</a> | |
<a href="sms:+306948123456">+306948123456</a> |
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
<input type="file" accept="image;capture=camera" /> | |
<input type="file" accept="video;capture=camcorder" /> | |
<input type="file" accept="audio;capture=microphone" /> |
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
$(el).prop('tagName').toLowerCase(); |
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
<!-- base tag --> | |
<base href="http://www.example.com/" /> |
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
$(el).prop('tagName'); |