I have this situation where I have to delete a script tag from the DOM with only the possibility of using another script for this. I know this isn't a good way of working, but it's the only option at this time.
Therefor my question is if this is possible. I think that when I delete this script you will still be able to use the functions inside.
Thanks!
<script>tag won't do you much good, because once the script is evaluated the tag itself doesn't do anything. The modifications the script made to the global page environment remain, and removing the tag won't affect those.