M
M
max_mara2011-09-11 10:14:10
JavaScript
max_mara, 2011-09-11 10:14:10

[JS] Delete script before it is loaded and executed

Good afternoon, colleagues.

There is a following task
there is a code How to delete this script even before it is loaded and executed? How to prevent it from loading? You cannot change this piece of code, but you can add another one above or below.
<script type="text/javascript"
src="http://example.com/script1.js">



Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dollar, 2011-09-11
@max_mara

<noscript>
<script type="text/javascript"
 src="http://example.com/script1.js">
</noscript>

T
tick, 2011-09-11
@tick

<body>
start
<script type="text/javascript">
// <!--
document.write("<!"+'--');
// -->
</script>
<script type="text/javascript" src="alert.js"></script>
<script type="text/javascript">
// <!--
document.write(" -"+"->");
// -->
</script>
end
</body>
* This source code was highlighted with Source Code Highlighter.

Just keep in mind that closing a comment is not
document.write(" -"+"->");
a
// -->
after him.

V
Viktor, 2011-09-11
@vick

<--

--->

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question