Basic JavaScript Tutorial - Part 1

This tutorial teaches you the basic's of JavaScript

Page 1 of 1

6 Replies - 1539 Views - Last Post: 31 July 2009 - 06:44 AM

#1 jonesa01  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 25
  • View blog
  • Posts: 125
  • Joined: 18-February 07

Basic JavaScript Tutorial - Part 1

Posted 01 April 2007 - 10:55 AM

Javascript is one of the major non-server side Web Languages. In this tutorial I am only going to cover two of the basics of Javascript.
- Write text to screen

Lets first start with writing text to screen. You call the screen a document, so every Javascript command that is doing something with a window will display this. Now the main point is writing to screen, so we use the write command. This is an example of the code:

document.write("...");


For example if you wanted to have the most basic sentance "Hello World" printied onto the screen you would use the following code:

document.write("Hello World");


To make a new line you use \n or you can use all the html tags. For example if you wanted to say "You are cool!" you would use the following code:

document.write("You <b>are</b> cool!");


Now that is enough for writing to line. I have included an attachment including the scripts and one being more complex.

Attached File  HelloWorld.txt (30bytes)
Number of downloads: 90
Attached File  YouAreaCool.txt (39bytes)
Number of downloads: 80
Attached File  Adventurous.txt (52bytes)
Number of downloads: 93

Is This A Good Question/Topic? 1
  • +

Replies To: Basic JavaScript Tutorial - Part 1

#2 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Basic JavaScript Tutorial - Part 1

Posted 04 June 2009 - 01:30 AM

Bit short.
Was This Post Helpful? 0
  • +
  • -

#3 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: Basic JavaScript Tutorial - Part 1

Posted 04 June 2009 - 02:35 AM

very nice!
Was This Post Helpful? 0
  • +
  • -

#4 uzairkhan09  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-June 09

Re: Basic JavaScript Tutorial - Part 1

Posted 04 June 2009 - 11:18 AM

very easy for new learners. Thank you. uzair ahmed khan
Was This Post Helpful? 0
  • +
  • -

#5 jonesa01  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 25
  • View blog
  • Posts: 125
  • Joined: 18-February 07

Re: Basic JavaScript Tutorial - Part 1

Posted 29 July 2009 - 01:28 AM

Here is the long awaited part 2: http://www.dreaminco...howtopic=117367
Was This Post Helpful? 0
  • +
  • -

#6 Bort  Icon User is offline

  • Ill-informed Mongoloid
  • member icon

Reputation: 396
  • Posts: 2,923
  • Joined: 18-September 06

Re: Basic JavaScript Tutorial - Part 1

Posted 29 July 2009 - 03:50 AM

Why not put this in the tutorials section?
Was This Post Helpful? 0
  • +
  • -

#7 kewlkreator  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 38
  • View blog
  • Posts: 1,065
  • Joined: 25-March 09

Re: Basic JavaScript Tutorial - Part 1

Posted 31 July 2009 - 06:44 AM

View PostBort, on 29 Jul, 2009 - 02:50 AM, said:

Why not put this in the tutorials section?

Got rejected probably.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1