<public:component lightweight="true">
    <public:attach event="ondocumentready" onevent="unselectable()"/>
    <script type="text/javascript">
        function unselectable() {
            element.onselectstart = function () {
                return false;
            };
            element.setAttribute('unselectable', 'on', 0);
        }
    </script>
</public:component>