0
I want it from the same index.html
can change your content using two files .js
different. In short, I want to change the .js
without changing page html
, Type:
<html>
<head>
</head>
<body>
<button id="texto" onclick="function(){ dcoument.querrySelector('#teste').src = 'teste2.js'">Teste</button>
<script id="teste" src="teste1.js"></script>
</body>
</html>
That’s possible, or something?
Thank you very much XD
– Erick Fraga