As I work on developing a chrome extension, my goal is to allow users to select text. I successfully achieved this by running the code in the chrome console.
document.onselectstart=new Function ("return true");
However, when I attempted to incorporate the code into the document ready event, it did not have any effect.
$(document).ready(function(e){
document.onselectstart=new Function ("return true");
});
I'm now left wondering where exactly should I place this line of code to make it function properly?