jimbojames5645
Programmer
I want to make a table where the text in the table rows is not selectable.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
.unselectable {
-moz-user-select: none;
-khtml-user-select: none;
user-select: none;
}
yourEl.onselectstart = function() { return(false); };
.unselectable {
behavior: url(ieUserSelectFix.htc);
}
<public:component lightweight="true">
<public:attach event="ondocumentready" onevent="stopSelection()" />
<script type="text/javascript">
<!--
function stopSelection() {
element.onselectstart = function() { return(false); };
element.setAttribute('unselectable', 'on', 0);
}
//-->
</script>
</public:component>