Posts by Feranda • 21 points
1 post
-
2
votes1
answer197
viewsQ: How can I reduce this line of code in javascript?
I have a file like this: <html> <script> var a = document.createElement('script'); a.src = 'js/index.js'; document.getElementsByTagName('html')[0].appendChild(a); </script>…