I'm starting to see javascript and I have two html pages with javascript content. In one I have a method and in another I have to show the result of that function. I tried calling it in the header and just before calling the method, but it does not work for me. These are the two pages: js.html:
<html><head><title>js</title></head><body>
<script src="C:\Users\cdum7\Desktop\js\js1.html">
document.write(miFuncion(4,5));
</script>
</body></html>
js1.html:
<html><head></head><body>
<script>
function miFuncion(a,b){
c=a+b;
return c;
}
</script>
</body></html>