Ajax Cookbook - Disable Text Selection
Ajax Cookbook - Disable Text Selection
function disableSelection(element) {
element.onselectstart = function() {
return false;
};
element.unselectable = "on";
element.style.MozUserSelect = "none";
element.style.cursor = "default";
}
沒有留言:
張貼留言