-   Linux - Desktop (
-   -   Why doesn't javascript work? (

Tux-O-Matic 09-21-2006 02:55 PM

Why doesn't javascript work?
I tried to write in Javascript recently on my Fedora Core 5 machine, however, I couldn't do anything. Is Javascript a special Windows language? If not, what kind of tag should I use in writing javascript (I know that there are several different tags).

PerfectReign 09-21-2006 03:16 PM

Javascript is a "java-like" scripting language used mostly on web pages. For example, the google ads on this site are run under a javascript script. To answer your question as what you need, you'll want a web server running (Apache)and a browser to view the web page.

Javascript is embedded in a <script> tag. A very easy example of javascript would be the following:

<script type="text/javascript">

alert('Hello World');


If you view the source of this page, you'll see a lot of javascript examples.

There's this really cool website called You can find a box there in which you can type, "javascript tutorial" and be presented with several thousands of places to learn more.

All times are GMT -5. The time now is 11:37 AM.