Newb question on Java and Javascript

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Jack Duncan

Newb question on Java and Javascript

Post by Jack Duncan »

I am learning both Javascript and Java 2.0, I am
beginning to understand how to write Javascript in
textpad, and have even written some Java and viewed in
appelet. My question is how do I get something I have
created for Javascript in the textpad editor to run and
test in my browser. I am using the Mirosoft browser I
just don't understand the mechanics on how to make that
leap. i can write the code its the exection thats the
problem. any suggestion or help points to the right
direction.
Peter

Re: Newb question on Java and Javascript

Post by Peter »

Well, you need to place your javascript code within an HTML document.

At the most basic, you could do something like this:

<script>
alert('Hello');
</script>


Save this as hello.html, and then from Explorer, choose File > Open and then navigate to the directory in which you stored the HTML document.

Cheers.
Post Reply