Archive for the ‘Javascript’ Category

Javascript-How to use?

November 28, 2010 Leave a comment

Javascript is embeded into HTML pages and <script> tag is used to insert a JavaScript into an HTML page.

<script type="text/javascript">
document.write("Hello World!");

The document.write command is a standard JavaScript command for writing output to a page.By entering the document.write command between the <script> and </script> tags, the browser will recognize it as a JavaScript command and execute the code line.

Web pages aren’t made of HTML alone, JavaScript provides access to more than just HTML objects. JavaScript also provides access to browser- and platform-specific objects. Browser plug-ins (such as RealPlayer and Adobe Acrobat), the name and version of a particular viewer’s browser, and the current date are all examples of non-HTML objects that you can work with by using JavaScript.

Categories: Javascript

Javascript-Basic Introduction

November 28, 2010 Leave a comment

HTML is used to create Web-Pages and Javascript is used to interact with Web-Page.To add JavaScript(JavaScript’s official name is ECMAScript) to a Web page, all you have to do is embed JavaScript code in an HTML file.

What we need before learning Javascript:-

  • Basic Knowledge of HTML.
  • Javascript supported browser eg:- Netscape,Mozilla firefox or IE.

One more thing,Javascript is totally different from Java.Java and JavaScript are two completely different languages in both concept and design.Javascript is easy to learn then Java.

JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is written into an HTML page. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it’s up to the browser to do something with it.

Categories: Javascript