javascript

View Javascript Events Fired on Element in Google Chrome

Hit F12 or open Dev Tools Click the Sources tab On right-hand side, scroll down to “Event Listener”, and expand tree Click on the events you want to listen for. Interact with the target element, if they fire you will get a break point in the debugger Similarly, you can right click on the target element…

Read More...

js1k.com – the JavaScript code golfing competition

I’ve got zero javascript skills compared to these dudes… Impressive coding. js1k.com – the JavaScript code golfing competition.

Read More...

PHP + Javascript – limit characters in multiple text areas within same form

Javascript  <script language=”javascript” type=”text/javascript”> //http://www.phpfreaks.com/forums/javascript-help/%28solved%29-javascript-character-limit-with-multiple-textareas/ function checkTextArea(id,limit){ //alert (“id ” +id +” limit ” + limit); if (document.getElementById(id)){ //alert(“id ” + id); var txt = document.getElementById(id).value; if (txt.length>limit){ //alert (“reached text limit: ” + limit + ” characters”); document.getElementById(id).value = txt.substr(0,limit); } len = document.getElementById(id).value.length; //alert (“len: ” + len); //alert (“limit”); span_id = “counter”…

Read More...