Skip to content
Charlie CedarIsle Calvert edited this page Feb 22, 2015 · 1 revision

We automatically run JavaScript in the included file.

We include a JS file:

<script src="../Scripts/AutoRun.js" type="text/javascript"></script>

And inside it we execute JavaScript:

document.write("<p>JavaScript text run automatically</p>");

The point is that arbitrary JavaScript is run without us ever explicitly calling it. This can be useful or dangerous, depending on how it is used.

 

Clone this wiki locally