Bookmarklet : Put your email in a focused input field
As Sacha tell us in his comment, he would like to put his email in an input field on focus.
So we make a small javascript code to help him to improve his firefox experience ![]()
You click on the bookmarklet and then put the focus on the field you want your email as value. It works just one time on a page
javascript:var focus_activated = true;inputs_array = document.getElementsByTagName("input"); for(var j=0; j< inputs_array.length; j++){inputs_array[j].addEventListener( "focus", function() {if(focus_activated){this.value='makemepulse@blog.com';focus_activated=false;}}, false); };void(0);
About this entry
You’re currently reading “Bookmarklet : Put your email in a focused input field,” an entry on Make me pulse - Making a better life for web developer since 2006
- Published:
- 07.05.07 / 11am
- Category:
- Javascript


3 Comments
Jump to comment form | comments rss [?] | trackback uri [?]