Skip to content

Instantly share code, notes, and snippets.

@srinathweb
Created July 21, 2015 08:47
Show Gist options
  • Select an option

  • Save srinathweb/f37372d03da43646ee8b to your computer and use it in GitHub Desktop.

Select an option

Save srinathweb/f37372d03da43646ee8b to your computer and use it in GitHub Desktop.
favicon
<textarea id="foo">Some text</textarea>
<script type="text/javascript">
var textBox = document.getElementById("foo");
textBox.onfocus = function() {
textBox.select();
// Work around Chrome's little problem
textBox.onmouseup = function() {
// Prevent further mouseup intervention
textBox.onmouseup = null;
return false;
};
};
</script>
http://jsfiddle.net/NM62A/
https://github.com/eventviva/php-image-resize
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
16x16, 32x32 and 48x48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment