CHANGE COLOR
  • Default color
  • Brown color
  • Green color
  • Blue color
  • Red color
CHANGE LAYOUT
  • leftlayout
  • rightlayout
SET FONT SIZE
  • Increase font size
  • Default font size
  • Decrease font size
Customise your homepage

Website Support India - Support for website related issues

Home News

News

Java Script Basic

E-mail Print PDF
Welcome to Java-Script Tutorial for Beginners powered by http://www.websitesupport.in/

What is java-script ?

JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, Chrome, Opera, and Safari.

Before you start, you should have a basic understanding of HTML / XHTML

Why is JavaScript?

  • It was designed to add interactivity to HTML pages
  • It's a scripting language
  • A scripting language is a lightweight programming language
  • It's usually embedded directly into HTML pages
  • JavaScript is an interpreted language (means that scripts execute without preliminary compilation)
  • Everyone can use JavaScript without purchasing a license

Declaring JavaScript

Adding JavaScript to a web page is actually surprisingly easy! To add a JavaScript all you need to add is the following (either between the <head></head> tags or between the <body></body> tags - “Websupport” will explain more about this later):

<script language="JavaScript">
JavaScript
</script>

As you can see the JavaScript is just contained in a normal HTML tag set. The next thing you must do is make sure that the older browsers ignore it. If you don't do this the code for the JavaScript will be shown which will look awful. There are two things you must do to hide the code from older browsers and show something instead:

<script language="JavaScript">
<!--Begin Hide
JavaScript
// End Hide-->
</script>
<noscript>
HTML Code
</noscript>

As you can see this makes the code look a lot more complex, but it is really quite simple. If you look closely you can see that all that has been done is that the JavaScript is now contained in an HTML comment tag. This is so that any old browsers which do not understand “script” will just think it is an HTML comment and ignore it.

Because of this the <noscript> tag was created. This will be ignored by browsers which understand <script> but will be read by the older browsers. All you need to do is put between <noscript> and </noscript> what you want to appear if the browser does not support JavaScript. This could be an alternative feature or just a message saying it is not available. You do not have to include the tag if you don't want anything shown instead.

Something you might have noticed in the example above was that on the line:

// End Hide-->

There was a:

//

which does not usually appear in an HTML comment. This is because it is the sign for a JavaScript comment (it was included here to stop the browser from thinking the closing HTML tag was a piece of JavaScript).

It is very important in JavaScript, as with any other programming language t o include comments, especially if you want others to learn from your code. It is also useful for including a copyright message.

Last Updated ( Tuesday, 08 March 2011 18:21 )
 

Javascript Introduction

E-mail Print PDF

Introduction

Thousands of sites around the world use JavaScript but it is still not a particularly well known programming language (compared to HTML). If you have seen anything interactive on a website like a calculation, pop-up-window, some web counters and even some navigation systems then you have probably seen JavaScript.

JavaScript must not be confused with Java. Java is a completely different programming language. It is usually used for text effects and games, although there are some JavaScript games around.

Last Updated ( Tuesday, 27 April 2010 16:09 ) Read more...
 

Welcome to Joomla!

E-mail Print PDF
Joomla! is a free open source framework and content publishing system designed for quickly creating highly interactive multi-language Web sites, online communities, media portals, blogs and eCommerce applications.


Joomla! LogoJoomla! provides an easy-to-use graphical user interface that simplifies the management and publishing of large volumes of content including HTML, documents, and rich media. Joomla! is used by organisations of all sizes for Public Web sites, Intranets, and Extranets and is supported by a community of thousands of users.

Last Updated ( Thursday, 08 November 2007 17:36 ) Read more...
 

Stick to the Code!

E-mail Print PDF
To ensure this code release, Wilco Jansen resorted to sending rum to joint lead-developer Johan Janssens. Johan, who's had a penchant for rum ever since the first "Pirate's of the Caribbean" movie screened, took the bait, mixed it with Cola, and here we are with our latest 1.5 release. It looks like pirate talk will figure quite a lot in future Joomla! development!
Last Updated ( Monday, 26 November 2007 04:07 ) Read more...
 

We are Volunteers

E-mail Print PDF

The Joomla! Core Team consists of volunteer developers, designers, administrators and managers who, together with a large range of Work Groups of dedicated community members have taken Joomla! to new heights in its relatively short life. This well-oiled machine is often copied but never surpassed. Joomla! has some wonderfully talented people taking Open Source concepts to the forefront of industry standards. Joomla! 1.5 is a major leap forward and represents the most exciting Joomla! release in the history of the project.

Last Updated ( Thursday, 08 November 2007 17:40 ) Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »
Page 1 of 2

Polls

Best Open Source Database
 

Software Reviews

Dreamweaver CS5
website_support : dreamweaver_cs5
Best Website Developer and designing software
Photoshop
website_support_Photoshop CS5
Most famous website page desinging software 
Eclipse
website_support-Eclipse 
Open Source PHP IDE.