Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save metafeather/202969 to your computer and use it in GitHub Desktop.
Save metafeather/202969 to your computer and use it in GitHub Desktop.
/*
I wanted a table to allow the user to select a range of rows with a Shift+Click… The problem is that, by default, the browser will select the page’s text content. This isn’t something you’ll want to do very often but it is possible to get around this:
Firefox can do this from your CSS:
table {
-moz-user-select: none;
}
On the table element IE needs:
*/
the_table_node.onselectstart = function () {
return false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment