Try this:
 <style id="switch">
 body{ 
    background-color: gray;
 }
 </style>
 <script>
 $(document).ready(function(){
     $('.button').click(function(){
        document.getElementById("switch").disabled=true;
    });
 });
 </script>
<html>
    <body>
    <a href="#" class="button"><button>Button</button></a>
    </body>
</html>
Setting an id to the style tag will control specific css. You can re-enable it by changing disabled back to false. Hope that works.
