1

Well I think this is kinda dumb but, I wonder if there's any way to hide Javascript code from older browsers without affecting the code for modern browsers.

Yes I know there's the <noscript></noscript> tag to show a message for older browsers, but sometimes very old browsers for any reason show the JS code as text if is not recognized.

I hope you understand.

0

1 Answer 1

3
<script>
<!--
    Your code here
//-->
</script>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.