Forum : Java Script not working for me...
Brief description  about Online courses   join in Online courses
View Avraham  Venismach 's Profile

Java Script not working for me...

This below is a copy and paste from lesson 1 Javascript. It doesnt work for me. But when I enter the code that w3schools puts out it works...why doesn't the code from the lesson work?

Code from lesson:

<HTML>
<HEAD>
<TITLE>A First Script</TITLE>
</HEAD>
<BODY>

<SCRIPT LANGUAGE="javascript">

documtent.write("Welcome to Siliconindia");

</SCRIPT>

</BODY> </HTML>
</body>
</html>

code from w3schools:

<html>
<body>

<script type="text/javascript">
document.write("This is my first JavaScript!");
</script>

</body>
</html>
Asked by Avraham Venismach | Jan 19, 2010 |  Reply now
Replies (5)
View avraham venismach 's Profile
Since its on w3schools do think that is the standard?
Jan 19, 2010
View sanjay s nair 's Profile
Sorry I don't know, both does exactly same function, if someone know just reply..
Jan 19, 2010
View avraham venismach 's Profile
Do you know what the difference is between:

<script type="text/javascript"> and <SCRIPT LANGUAGE="javascript"> ?
Jan 19, 2010
View avraham venismach 's Profile
someone aught to tell this to the course... Thanks for clearing that up...I should not be so lazy and write it out myself!
Jan 19, 2010
View sanjay s nair 's Profile
ERROR : documtent.write("Welcome to Siliconindia");

The spelling of document is wrong
Jan 19, 2010