当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Disabling single script within a webpage

问题描述:

By searching a bit, one could find this question about stopping chrome from loading a javascript file.

But this doesn't work for a script which is not linked, for example:

<!-- Some html here -->

<script id="script">

//Some script here

</script>

The script here is coded inside the html page and not linked from an external .js file. As you can see, I'm looking for a way to disable that and only that #script before it gets loaded.

Thanks in advance for your help.

分享给朋友:
您可能感兴趣的文章:
随机阅读: