0
Hey guys, i have a question
of i write a javascript and i wanna open it with firefox, there is no text just the javascript i wrote. Can somebody help me?
4 Respuestas
+ 1
Ook, what is your problem ?
+ 4
I'd recommend setting up a basic .html file and a separate .js file. Store both files in the same directory.
You can then include the script file like this.
<!DOCTYPE html>
<html>
<body>
<script src="myJavaScriptFile.js">
</script>
</body>
</html>
Once you've done this, open the .html file in Firefox. Any JavaScript that outputs to the page should show.
0
if i want to write "hello" there are just things like <html> and no real text
0
Whats your file extention?