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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.