Académique Documents
Professionnel Documents
Culture Documents
The Web
The World Wide Web, or simply the Web for short, is one of the most popular services provided via the
internet.
The web is the collection of all browsers, servers, files, and browser-accessible services available through
the Internet.
The most familiar element of the Web is the browser.
A browser is the user’s window to the web, providing the capability to view Web documents and access Web-
based services and applications.
The web uses the Internet as its communication medium; it must follow Internet communication protocols.
A protocol is a set of rules governing the procedures for exchanging information.
HTML
The Hypertext Markup Language, or HTML is, the lingua franca of the Web. It is used to create Web pages and is
similar to the codes used by some word processing programs, notably WordPerfect.
HTML uses ordinary ASCII text files to represent Web pages. The files consist of the text to be displayed and the
tags that specify how the text is to be displayed.
URLSs
A Uniform Resource Locator, or URL is the notation used to specify the address of the Internet file or service.
A URL always contains a protocol identifier, such as http, or ftp and a host name, such as
home.hetscape.com
HTTP Protocol
HTTP is the protocol used for communication between browsers and Web servers.
HTTP uses a request/response model of communication. A browsers establishes a connection with a server
and sends URL requests to the server.
Several request methods are available. GET, HEAD, and POST are the most commonly used ones.
The GET methods: is used to retrieve the information contained at the specified URL.
The HEAD method: is similar to the GET methods except that when a web server processes a HEAD request it
only returns the HTTP header data and not the information that was the object of the request.
The POST method is used to inform the server that the information appended to the request is to be sent to the
specified URL.
Netscape originally developed a language called Live Script to add a basic scripting capability to both Navigator
and its Web-server
Java Script supports both Web browser and server scripting.
Java Script is a script-based programming language that supports the development of both client and server
components of Web-based applications. On the client side, it can be used to write programs that are executed by
a Web browser with in the context of a Web page. On the server side, it can be used to write Web server
programs that can process information submitted by a Web browser and then update the browsers display
accordingly.
<script language=‘Javascript’>
Javascript statements
</script>
Example
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script language=‘Javascript’>
document.write (‘hello World!’);
</script>
</body>
</html>
Exercise:
1. write a JavaScript program to print a greeting message
JavaScript Comments:
The JavaScript language provides comments of its own.
These comments are used to insert notes and processing descriptions into scripts.
The Comments are ignored when the statements of a script are parsed by JavaScript enabled browsers.
Single line comments
/* and */ string are used to identify comments that may span multiple line.
Example:
Output:
HELLO WORLD!
The head of an HTML document provides a great place to include JavaScript definitions.
Since the head of a document is processed before its body, placing definitions in the head will cause them to
be defined before they are used.
Example
<html><head><title>Using the HEAD for definition</title>
<script language=‘JavaScript’>
<!—
Greeting=‘hi Web Surfers!’;
//-->
</script>
</head>
<body>
<script language=‘javaScript’>
<!—
Document.write(greeting)
//-->
</script></body></html>
Output
Hi
Generating HTML
By including HTML tags in your JavaScript script, we can also use JavaScript to generate HTML elements that
will be displayed in the current document.
Example
<html><head><title>Using JavaScript to Create HTML tags</title>
<script language=‘JavaScript’>
Greeting=‘<h1>Hi wen surfers!</h1>‘
Welcome=‘<p>Welcome to <cite> Mastering JavaScript and Jscript.</cite></p>
</script>
</head>
<body>
<script language=‘javascript’>
document.write(greeting);
document.write(welcome);
</script>
</body>
</html>
Output
JavaScript automatically converts the Boolean values true and false into 1 and 0 when they are used in numerical
expressions.
Example
<html><head><title>Conversion of Logical values to numeric values</title>
</head>
<body>
<script language=‘JavaScript’>
<!—
Document.write(‘true*5+false*7=‘)
Document.write(true*5+false*7)
//-- >
</script>
</body></html>
Output
True*5+false*7=5
String Values:
JavaScript supports for strings of characters
A string is a sequence of zero or more characters that are enclosed by double(‘) or single (‘) quotes
To insert a quote character in a string, we must precede it by the backslash (\) escape character.
Example
<html><head><title>Using Quotes within Strings<\title>
</head>
<body>
<script language=‘javaScript’>
document.write(‘He said,\’that’s mine!)
document.write(‘She said,\’No it\ ‘s not<br>‘
document.write(‘That ‘s all folks’);
</script>
</body>
</html>
Output
He said,?’That’s mine
She said,’no it’s not’
That’s all folks!
Conversion Types:
JavaScript automatically converts values from one type to another when they are used in an expression
Conversion Functions
Functions are collection of JavaScript code that perform a particular task, and often return a value. A function may
take zero or more parameters.
The eval() function can be used to convert a string expression to a numeric value
Example:
Total=eval(‘432.1*10’)
Output:
4321
parseFloat() function is similar to the parseInt() function. It returns the fiorst floating-point number constained in a
string or 0 is the string does not begin with a valid floating point number.
Example:
parseFloat(‘2.1e4xyz’)
Output
21000
Example
parseFloat(‘xyz’)
Output:
0
Exercise:
1. Write a JavaScript program to find the sum of two numbers
2. Write a JavaScript program to print your address in a neat format
3. Write a JavaScript program to find the read of circle and rectangle.
Arrays
Arrays are objects that are capable of storing a sequence of values. These values are stored in indexed locations
within the array.
Syntax:
Employee=new Array (5)
Syntax:
variabelname=new Array()
This declares an array of length that is used to keep track of customer orders.
Example
Order=new Array()
Initial lingth 0
Order[99]= Widget #457’ The length of the array extended 100
Order[999]= ‘Delux widget set #10’ the array extended to 1000
Syntax:
This junk array has length 8 and its elements are as follows:
Junk[0]=”s1”
Junk[1]=”s2”
Junk[2]=4
Junk[3]=3.5
Junk[4]=true
Junk[5]=false
Junk[6]=null
Junk[7]=new dense array consisting of the values 5, 6, 7
The three elements of junk[7] can be accessed using a second set of subscripts as follows:
Junk[7][0]=5
Junk[7][1]=6
Junk[7][2]=7
InputBox:
Is used for getting values during runtime
Syntax:
Variablename=prompt(“input message”);
Example:
A=prompt(“Enter your name”)
B=parseInt(prompt(“Enter a numeric value”))
Message Box:
It is used for displaying messages on the window.
Example:
alert(“Good morning”);
Confirmation Box:
It is used for getting confirmation from the user ok, cancel
Example
K=confirm(“Do you want to continue?”)
Exercise:
1. Write a JavaScript program to read 5 students details from that to find the total and result
2. Write a JavaScript program to read a number and find out is it a palindrome or not
3. Write a java script [program to find the employee’s net salary using array.
Example:
<html>
<head><title>Relational Operators</title></head>
<body>
<script languge="JavaScript">
a=10;
b=20;
document.write ("a>b = "+(a>b));
document.write("<br>a < b = "+(a<b));
</script></body></html>
Conditional Statements:
The if statement
The if statement provides the capability to alter the course of a program execution based on an
expression that yields a logical value. If the logical value is true, a specified set of statements
is executed. If the logical value is false, a the set of statements is skipped.
If (condition)….else….. If (condition) else if(condition)..else
<html> html>
<head> <head>
<title> <title>If elseif Condition</title>
to Display messages </head>
</title> <body>
</head> <script language="javascript">
<body> var a,b
<script languge="JavaScript"> a=parseInt(prompt("Enter value1"));
a=prompt("Enter ur name"); b=parseInt(prompt("Enter value2"));
b=prompt("enter ur age"); c=parseInt(prompt("Enter value2"));
alert ( "Ur Name is :" + a +" \n Ur age is :" + b); if (a>b && a>c)
if (confirm(" do u want to get another name and age?")) alert (a + " is greater");
{ else if (b>c)
a=prompt("Enter ur name"); alert(b + " is greater");
b=prompt("enter ur age"); else
alert ( "Ur Name is :" + a +" \n Ur age is :" + b); alert(c + " is greater");
} </script>
else </body>
{ </html>
alert ("Thank U");
}
</script>
Looping Statements:
Loop statements are used to repeat the execution of a set of statements while a particular condition is true. Java
script supports three types of loop statement
while
do while
for
Switch:
The switch statement evaluates the expression and determines if any of the values match the expressions value.
if one of them matches, then the statements for that particular case are executed, and statement execution then
continues after the switch statement. If there is no matching value, then the statements for the default case are
executed.
Syntax:
switch(value)
{
case value1:
:::::
break;
case value2:
::::::
break;
case valuen:
::::::
break;
default:
::::::::::::
}
Example:
<html><head><title>Using the Switch Statement</title></head>
<body>
<script language=”JavaScript”>
var a;
a=prompt(“Enter a character”)
switch(a)
{
case ‘a’:
case ‘e’:
case ‘I’:
case ‘o’:
case: ‘u’:
document.writeln(“The given character is a vowel”);
break;
default:
document.writeln(“The given character is not a vowel”);
}
</script>
</body>
</html>
Exercise:
4. Write a JavaScript program to find the grade of a student from 5 subject marks
5. 1
2 2
3 3 3
4 4 4 4
Etc…..
7. Write a program from 1950 to 2015 Count the No of Leap Years and Non Leap Years
9. Sum of N Numbers
Functions
Functions are named blocks of statements that are referenced and executed as a unit. data that is required for
the execution of a function may be passed as parameters to the function. Functions may return a value, but are
not required to do so. When a function returns a value the invocation of the function is usually part of an
expression.
Defining a Function:
function functionname(p1,p2….pn)
{
statement;
::::::::::::::::::::::::::::::::::
}
Example:
( Function with no return values)
<html>
<head>
<title>jscript</title>
<body bgcolor="lightblue">
<script language="javascript">
sum()
</script>
</body>
</html>
<html>
<head>
<title>jscript</title>
<script language="javascript">
function sum()
{
sum=0
for(i=1;i<=5;i++)
{
sum=sum+i
}
return sum
}
</script>
</head>
<body bgcolor="lightblue">
<script language="javascript">
n=sum();
document.write("<br><br> Function Return Concept Sum of 5 Values are= "+n)
</script>
</body>
</html>
output:
0
1
4
9
16
Example:
<html>
<head><title>Global and Local Variables</title>
<script language=”JavaScript”>
with(document)
{
write(“<h1>Welcome</h1>”);
write (“<h2>Welcome</h2>”);
write(“<h3>Welcome</h3>”);
}
</script>
</head>
</html>
The for in statement is similar to a for statement in that it repeatedly executes a set of statements. However,
instead of iterating the statements based on the loop condition, it executes the statements for all properties that
are defined for an object.
Syntax:
for(variablename in objectname)
{
Statements
}
Example:
for(prop in employee)
{
document.write(prop+”<br>”);
}
The value of expression is used to identify the type of error that occurred. For example, the following statement
throws an exception named BadInputFromUser.
throw “BadInputFromUser”
The try statement and the catch statement work together to support exception handling. Their syntax follows:
try
{
statement(s) where an exception may be thrown
}
catch(errovariable)
{
statement(s) that handle the exception
}
Example:
<html>
<head>
<title>jscript</title>
<script language="javascript">
function prime(n)
{
try
{
if(n<1 || n>15)
throw "It is Out of Range "+n;
for(i=2;i<n;i++)
{
if((n%i)==0)
<body bgcolor="lightblue">
<script language="javascript">
document.write("<br><b> Prime Numbers Testing:</b><br>")
for(n=0;n<=15;n++)
prime(n)
</script></body></html>
Exercise:
1. Write a program to read student 5 subject marks and find the total and result. And also arise an error
whenever the marks will greater than 100
2. Write a program to arise the exception when the day is SUNDAY.
Events:
Events describe actions that occur as the result of user interaction with a Web page or other browser-related
activities.
For example, when a user clicks a hyperlink or a button, or enters data in a form, an event is generated informing
the browser that an action has occurred and that further processing is required. The browser waits for events to
occur, and when they do, it performs whatever processing is assigned to those events. The processing that is
performed in response to the occurrence of an event is known as event handling.
The code that performs this processing is called an event handler.
Example:
OnMouseOver:
The mouse is moved over a link or an area of a client-side image map
<html>
<head>
<title>Events</title>
</head>
<body bgcolor="lightblue">
<a onMouseOver="alert('MouseOver')"><b><u>krishna</b></u></a>
</body>
</html>
OnClick
A link, client-side image map area, or form element is clicked.
<html>
<head>
<title>Events</title>
<script language="javascript">
function fun()
{
alert("Event Occur")
}
</script>
</head>
<body bgcolor="lightblue">
<a href="w:\HELEN\JavaScript\objects\b1.jpg" onclick="fun()">krishna</a>
</body>
</html>
Example:
<html>
<head><title> Button Event</title></head>
<body>
<form><input type="Button" name="Red" value="Red color" ONCLICK='document.bgColor="RED" '></P>
<p>
<input type="Button" name="GREEN" value="GREEN" ONCLICK='document.bgColor="green" '></P>
<p>
<input type="Button" name="BLUE" value="BLUE" ONCLICK='document.bgColor="BLUE" '></P>
</form>
</body>
</html>
OnLoad OnUnload
An image, document, or frame set is loaded
The user exits a document or frame set.
Example
<html>
<head><title> Button Event</title></head>
<body>
<form><input type="Button" name="Red" value="Red color" ONCLICK='document.bgColor="RED" '></P>
<p>
<input type="Button" name="GREEN" value="GREEN" ONCLICK='document.bgColor="green" '></P>
<p>
OnMouseOut
The mouse is move out of a link or an area of a client-side image map
Example
<html>
<head>
<title>Events</title>
<script language="javascript">
function fun()
{
alert("Event Occured")
}
</script>
</head>
<body bgcolor="lightblue">
<a href="w:\HELEN\JavaScript\objects\b3.jpg" onmouseout="fun()"><b><u>krishna</b></u></a>
</body>
</html>
OnBlur
A document, window, frameset, or form element loses the current input focus.
OnFocus
A document, window, frameset or form element receives the current input focus.
Example
<html>
<head><title>GOT FOCUS</title>
<script language="javascript">
function calculation(form)
{
form.area.value=Math.PI*parseInt(form.radius.value)*parseInt(form.radius.value);
form.circum.value=2*Math.PI*parseInt(form.radius.value);
}
</script>
</head>
<body>
<form>
Enter Radius:<input type="text" name="radius"><br>
Area:<input type="text" name="area" onFocus="calculation(this.form);">
Example:
<html>
<head><title> Image amp Event Handling</title>
<script language=”JavaScript”>
firsttimeonhead=true
function onHead()
{
if(firsttimeonhead)
{
alert(“You’re on myt Head!”)
firsttimeonhead=false
}
}
function myeye()
{
alert(“Be careful or you’ll poke out my eye!”)
}
function mynose()
{
alert(“Asscchhooo!”)
}
Simulating Events
When an event simulation method is invoked, the object to which it refers as if the event is taking place. For
example, button objects hae the click() method that, when invoked, causes the button’s event handler to be
invoked.
<html>
<head><title>Simulating Events</title>
<script>
Function button1clicked()
{
Document.test.button2.click()
}
Function button2clicked()
{
Alert(“Button 2 was clicked”)
}
</script>
</head>
<body>
<form name=”test”>
<iunput type=button name=”button1” value=”Button1” onClick=”button1Clicked()”>
<input type=”Button” name=”button2” value=”Button 2” onClick=”button2clicked()”>
</form>
</body>
</html>
Exercise:
Using Properties:
Syntax:
Objectname.propertyname
Output
Document.bgcolor=”White”
Using Methods:
Syntax:
Objectname.methodname (parameterlist)
Output
R=Math.random()
Output
currentdata=new Date()
Predefined Objects:
Browser
Window
Navigator
Array
Boolean
Date
Function
Math
Number
Object
String
WindowObject
Window object is basic to all browser scripts. Like the navigator object, the window object is top-level object that
is automatically defined by our browser. A separate window object is defined for each window that is opened. The
window object is so important to writing browser scripts that the current window object is assumed by default in
many cases and may be omitted.
Property: Method
Closed Alert
defaultStatus Blur
document clearInterval(interval)
frames clearTimeout(timer)
history close()
Length confirm(text)
location focus()
Name open(url,name,[options])
prompt(text,defaultInput)
offscreen-buffering scroll(x,y)
setInterval(expression,milliseconds)
setTimeout(expression,millisecond)
The setTimeout () and clearTimeout () methods provide a clever way to wait a specified amount of time for a user
to perform a particular action and, if the action does not occur within the specified time perform timeout
processing.
Example:
<html>
<head>
<script>
function startEQ()
{
richter=5
parent.moveBy(0,richter)
parent.moveBy(0,-richter)
parent.moveBy(richter,0)
parent.moveBy(-richter,0)
timer=setTimeout("startEQ()",10)
}
function stopEQ()
{
clearTimeout(timer)
}
</script>
</head>
<body>
<form>
<input type="button" onclick="startEQ()" value="Start an earthquake">
<br />
<br />
<input type="button" onclick="stopEQ()" value="Stop the earthquake">
</form>
</body>
</html>
Example:
<html>
<head>
<title>Using SetInterval()</title>
<script language="JavaScript1.2">
var colorindex=0;
function changecolor()
{
colors=new Array("red","orange","green","blue","brown","purple","gray","white");
document.bgColor=colors[colorindex];
colorindex=(colorindex+1)%8;
}
function startColorChange()
{
setInterval("changecolor()",2000);
}
window.onLoad=startColorChange();
</script>
</head>
<body>
<h1>Changing Background Colors</h1>
<p> <code>The setInterval() </code>method is used to repeatedly change the document background color every
three seconds. </p>
</body>
</html>
Example:
<html>
<head>
<title>Window Object Open/Close Functions</title>
<script language="javascript">
function create()
{
}
</script>
<applet></applet>
</head>
<body bgcolor="lightblue">
<a href="dateobject.html">
<img src="y:\cur-swetha\swetha\falls.jpg" height=100 width=100></a>
<form>
<input type="button" name="help" value="Help" onclick="create()">
</form>
<form>
</form>
<script language="javascript">
setTimeout("create()",11000)
</script>
</body>
</html>
Navigator Object
The navigator object provides information about the type and version of the browser that is
used to run a script.
Property:
appCodeName
AppMinorVersion
appName
appVersion
browserLanguage
connectionSpeed
cookieEnabled
cpuClass
onLine
Language
mimeTypes
platform
userAgent
userLanguage
userprofile
Example:
<html>
<head>
<title>Navigator Object</title>
<script language="javascript">
function displayExplorerProperties()
write("<b>AppName: </b>")
writeln(navigator.appName+"<br>")
write("<b>AppVersion: </b>")
writeln(navigator.appVersion+"<br>")
write("<b>AppCodeName: </b>")
writeln(navigator.appCodeName+"<br>")
write("<b>PlatForm: </b>")
writeln(navigator.platform+"<br>")
write("<b>UserAgent: </b>")
writeln(navigator.userAgent+"<br>")
write("<b>Language: </b>")
writeln(navigator.language+"<br>")
}
}
displayExplorerProperties();
</script>
<body bgcolor="lightblue">
</body>
</html>
The screen Object
The screen object is an object that is property of the window object. It provides information about the dimensions
and color depth of the user’s screen.
Example
<html>
<head>
<title>Screen Object</title>
<script language="JavaScript">
function displayScreenProperties()
{
with(document)
{
write("<b>Height:</b>");
writeln(screen.height+"<br>");
write("<b>Width:</b>");
writeln(screen.width+"<br>");
write("<b>ColorDepth:</b>");
writeln(screen.colorDepth+"<br>");
}
}
displayScreenProperties();
</script>
</head>
<body>
welcome
<script language="javascript">
displayScreenProperties();
</script>
</body>
</html>
Property
Action
Button
Checkbox
Elements
fileUpload
Hidden
Length
Password
Radio
Reset
Select
Example:
<html>
<head>
<form><tile>Multiform DocumentExample</title>
<script language=”JavaScript”>
Function display()
{
win2=open(“”,”window2”)
win2.document.open(“text/plain”)
win2.document.writeln(“This document has”+document.forms.length+” forms.”)
for(i=0;i<document.forms.length;++i)
{
win2.document.writeln(“Form”+i+” has “+document.forms[i].elements.length+” elements.”)
for(j=0;j<document.forms[i].elements.length;++j)
{
win2.document.writeln(j+1)” A” + document.forms[i].elements[j].type+” element.”)
}
}
win2.document.close()
return false
}
</script>
</head>
<body>
<h1>Multiform Document Example</h1>
<form action=”Nothing” onSubmit=”return display()”>
<h2>Form 1</h2>
<p>Text Field:<input type=text name=t1 value=”Smaple text”></p>
<p>Passwordfield<inp[ut type=”password” name=t2 ></p>
<input type=submit name=f1 value=submit>
<input type=reset name=”re”>
</form>
<hr>
<form>
<h2>Form</h2>
<p><input type=checkbox name=chk1 value=”1” checked>check me!</p>
<p><input type=checkbox name=chk1 value=”2”> No. check me!</p>
<p><input type=checkbox name=chk1 value=”3”>Check all of us!</p>
</form>
Secunderabad Railway Station - 7801004784 25/29
Interface Informatics Pvt.Ltd ISO 9001: 2008 JavaScript Reference Book
<hr>
</body>
</html>
Math Object
The Math Object provides a standard library of mathematical constants and functions. The constants are defined
as properties of Math. The functions are defined as methods of Math. Specific instances of Math are not created
because Math is a built in object and not an object type.
Example:
<html>
<head>
<title>Object Array</title>
</head>
<body bgcolor="lightblue">
<script language="javascript">
document.write("<br><br>"+Math.PI)
document.write("<br><br>"+Math.sqrt(25))
document.write("<br><br>"+Math.round(2.714))
document.write("<br><br>"+Math.round(Math.random()*100))
document.write("<br><br>"+Math.random())
document.write("<br><br>"+Math.pow(2,3))
document.write("<br><br>"+Math.min(100,1000))
document.write("<br><br>"+Math.max(100,1000))
</script>
</body>
</html>
Date Object
The Date Object type provides a common set of methods for working with dates and times.
Methods Constructor
getDate() Date()
setDate() Date(Datestring)
GetDay() Date(milliseconds)
getHours() Date(year, month, day,hours, minutes, seconds,
millseconds)
setHours()
getMilliseconds()
setMilliseconds()
getMinutes()
setMinutes()
getMonth()
setMonth()
Getseconds()
setSeconds()
getTime(), setTime()
getYear(), setYear()
toLocalString(), toString(), valueOf(),
Example:
<html><head><title>Using the Date Object Type</title></head>
<body>
<h1>Using the Date Object Type</h1>
<script language=”javaScript”>
currentDate=new Date()
with(currentDate)
{
Document.write(“Date:”+getMonth()+”/”+getDate()+”/”+getYear()+”<br>”)
String Object
The String object type allows strings to be accessed as objects. It supports the length and prototype properties.
The length property identifies the strings length in characters.
Methods Methods
charAt(index) charCodeAt(index)
fromCharCode(codes) indexOf(pattern,startindex)
lastIndexOf(pattern) lastIndexOf(pattern, startindex)
Split(separator) Substring(startindex)
Substring(startindex,endindex) toLowerCase()
toString() toUpperCase()
valueOf()
Example:
<html>
<head>
<title>Object Array</title>
</head>
<body bgcolor="lightblue">
<script language="javascript">
function display(text)
{
document.write("<br><br>"+text)
}
s=new String("abcdefghde")
display(s)
display('charAt(1)= '+s.charAt(1))
display('charCodeAt(1)= '+s.charCodeAt(1))
display('indexOf("de")= '+s.indexOf("de"))
display('lastIndexOf("de")= '+s.lastIndexOf("de"))
display('substring(2,6)= '+s.substring(2,6))
display('toLowerCase()= '+s.toLowerCase())
display('toUpperCase()= '+s.toUpperCase())
</script>
</body>
</html>
Exercise:
Cookies
Hidden form fields were introduced to enable CGI programs to maintain state information about Web browsers.
However, hidden fields do not allow state information to be maintained in a persistent manner. That is hidden
fields can only used within a single browser session.
Syntax:
Set-Cookie: NAME=VALUE[; expires=DATE][;path=PATH][;domain=DOMAIN_NAME][;secure]
This field specifies the expiration date of a cookie. If it is omitted, the cookie expires at the end of the current
browser session. The date is specified in the following format:
I f the secure field is specified, and then a cookie is only sent over a secure communication channel.
Example:
<html>
<head><title>Cookie Test</title>
<script language=”JavaScript”>
Function udatecookie()
{
Document.cookie=document.form1.cookie.value
Location.reload(true)
}
</script>
</head>
<body>
<script language=”javaScript”>
Document.write(“your current cookie value is:”+document.cookie)
</script>
<form action=” “ name=”form1”>
<p>Enter new Cookie:<input type=text size=60 name=”cookie”>
</p>