Loading...

JavaScript

Originally developed by Brendan Eich and known as LiveScript , which was renamed to JavaScript in 1995 . JavaScript is an interpreted ...

Originally developed by Brendan Eich and known as LiveScript, which was renamed to JavaScript in 1995. JavaScript is an interpreted client-side scripting language that allows a web designer the ability to insert code into their web page. JavaScript is commonly placed into an HTML, ASP, or a similar file and run directly from the web page to perform tasks such as printing the time and date, creating a calendar, or other tasks that are not possible through plain HTML.

 Below is a basic example of a JavaScript that prints Hello World!.
<SCRIPT LANGUAGE="JavaScript">
<! -- Hide from old browsers
document.write('Hello World!');
// Stop hide -->
</SCRIPT>
Below is an example of a JavaScript implemented into this page that will print the current time and date. Like all JavaScript files, the user must have a browser capable of viewing JavaScript as well as have it enabled. If JavaScript is not enabled, the time and date will not be visible.
Today is Sat Feb 16 2013 21:41:29 GMT+0500 (Pakistan Standard Time)
Tip: See the JavaScript time and date source code to create this feature on your own webpage.
Although JavaScript files are often embedded into the HTML file, users can also save their JavaScript code in an external file. This file often ends with a .js file extension.
100 Tips 1954512455116217402

Post a Comment

Home item

Recent

Popular Posts

Archives

ADS

Labels

Random Posts