About JavaScript: Can I modify the contents of a script tag after the js text contained in it is loaded and before it is executed?

For example, I have a <script> alert(1) <script> in the web page. Now what I … Read more About JavaScript: Can I modify the contents of a script tag after the js text contained in it is loaded and before it is executed?

For example, I have a <script> alert(1) <script> in the web page. Now what I want to do is to change it to <script> alert (2) <script> after it is loaded and before it is executed, immediately. Can I succeed?

Source: JavaSript – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *