webguync Posted January 20, 2010 Share Posted January 20, 2010 I have some javascript which makes all text on a page unselectable. Works great. I only want some of the text unselectable though, not all on the page. I can give the text I need selected a class, but how would I adjust the JS? below is the code <script type="text/javascript"> document.onselectstart=new Function('return false');function ds(e){return false;}function ra(){return true;}document.onmousedown=ds;document.onclick=ra; </script> Link to comment https://forums.phpfreaks.com/topic/189214-need-to-adjust-script-to-work-on-certian-areas-of-page-only/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.