VampFoot |
|||||||||||||||
|
JavaScript Tutorial
Hi! Welcome to this JavaScript tutorial! I hope you want to learn to learn JavaScript, because, as you know, we're gonna learn it. BTW (By The Way), did you see a small "alert box" saying some stuff? Well, that was done with JavaScript. Cool, huh? I think so too. So, let's start. JavaScript is not really a "programming language"; it doesn't have to be compiled, and it's easier to learn than most languages. It's what's called a "scripting language". Scripting languages are "interpreted"; Perl too belongs to this group. But more on Perl at some other place, here we're learning -- ah, well, you know it. Anyways. Some people would say JavaScript is not really even a true scripting language; in the sense, that you're actually only giving the browser "instructions". It's like you've got the needle and thread, now you're giving them to the girl with instructions on how to stitch with them. Get my idea? I know you didn't. That's why I'm not going to confuse you more right now. That's up to yourself. And besides, you don't have to worry about it right now. I'll show you a page that will give a JavaScript alert when it loads: Example 1 <HTML><HEAD><TITLE>Example One</TITLE></HEAD><BODY><SCRIPT LANGUAGE="JavaScript"> alert("Hi! This is an alert!")</SCRIPT></BODY></HTML> This would pop up an alert as soon as the page loaded. Key it into your favourite HTML editor, and see what it does. Or better yet, come here. |