0

I'm learning JavaScript, and want to know how I can run / test code on windows? I also want to download the library. Can anyone assist me? Thanks

3
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by as3g
0

JavaScript is built into the browser, there is no Library that you need to download. For testing JavaScript, just create an HTML page that either has JavaScript embedded into using Script tags, or the HTML page references an external .js file.


test.html

<html>
<head>
<title>The is a test page</title>

<script type="text/javascript" src="test.js"></script>

<script>

alert('Before page finishes loading');

//JavaScript can go here but might execute before 
//the page is fully loaded which may cause errors

</script>

</head>
<body>

<div>

page content goes here

</div>

<script>

//javascript goes here

alert('Closer to the end of the page loading.');

</script>
</body>
</html>

test.js

alert('External javascript loading');
0

JavaScript is built into the browser, there is no Library that you need to download. For testing JavaScript, just create an HTML page that either has JavaScript embedded into using Script tags, or the HTML page references an external .js file.


I bought this Java for everyone book, and it says there is a built in java library? What am i missing?

0

You want Java, not JavaScript then. JavaScript is COMPLETELY different. I would suggest moving this question to "Software Development" > "Java"

0

You want Java, not JavaScript then. JavaScript is COMPLETELY different. I would suggest moving this question to "Software Development" > "Java"

ok thanks.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.