Upload
vijay-kumar-verma
View
344
Download
4
Embed Size (px)
DESCRIPTION
Lean What is javascript? How to start learning JavaScript?
Citation preview
JAVA SCRIPT LANGUAGE
For web development
Vijay Kumar Verm
a (VJY)
I
24-March
-2014
WHAT
PRO AND CONS
HOW TO USE
IMPLEMENT
EXAMPLE
OBJECTIVES
What is Ja
va Script Dynamic Programming Language.
Its syntax was influenced by C. Developed by Brendan Eich Client-side scripts to interact with the
user Control the browser, Alter the document content that is
displayed Also used in used in server-side
programming, game development and the creation of desktop and mobile applications
Take Some Examples
Pro and Cons of JS Javascript is executed on the
client side Javascript is a relatively easy
language Javascript is relatively fast to the
end user Extended functionality to web
pages JavaScript reduced the Server
Load.
Security Issues Javascript rendering varies
How to Use in
HTML Knowledge of HTML Text Editor Web Browser Some Idea and mind
JavaScripts in HTML must be inserted between <script> and </script> tags.
JavaScripts can be put in the <body> and in the <head> section of an HTML page.
Internal Java Script
External Java Script
Inline Java Script
<html><head>
<script> //Type JS Script Here
</script></head><body>…</body><html>
<script lang="text/javascript" src=“URL of .JS File">
</script>
<a href="#" onclick="alert('Hi')">
Click Me</a>
var i=0;
function test() { for (i=0; i<10; i++) { document.write("Hello World!"); }}
test();
Write Firs
t Program<html>
<head><title>Hello World in JS</title><script language="javaScript">
document.write("Hello World");</script>
</head>
<body></body></html>
<html><head>
<title>InLine JS</title></head>
<body><input type="text" value="Your
Name" onFocus="this.value=''"/></body></html>
Thank You