Do you want it like this: http://jsfiddle.net/Praveen16oct90/x6sAT/5/
document.getElementById("text_selectable").onmousedown = function(event)
{
event.preventDefault();
return false;
}
Give ID for HTML as 'text_selectable' and use it. <html id="text_selectable">