Search code examples
javascriptdebugginglive

Javascript live code modification


I'm new to javascript and I want to ask if there is any way to modify javascript code that was loaded from the server side? There is an external script <script src="myscripts.js"></script> Can I modify this, let's say with Google Chrome inspector. I want to alter for example, one of the script's functions. Can I do it?


Solution

  • Yes, you can.

    However, if you refresh (or the script is requested again) you'll get the original script from the server.