Free Online Programming Tutorials

Let’s Learn Web Programming!





Archive for the ‘JavaScript’ Category

Here’s more info on cookies that you may want to know -

• When the cookie is requested for the first time, the cookie is stored using the set-Cookie entry in the header of the response from the server.
• Set-cookie : name= value; expires = Date;Path=PATH;domain=DOMAIN;secure

Optional attributes are –
Read the rest of this entry »

Wondering what is JavaScript? Well, here’s a brief introduction to JavaScript, along with some of its common uses…
Read the rest of this entry »

To integrate javascript with the html, the following syntax must be used.
Read the rest of this entry »

Cookie is a method of storing information about the page returned by the server and stored locally in the browser.

Purpose of the cookie is to store the state of the client enabling the server to know about the client’s previous actions on the page downloaded…
Read the rest of this entry »

This is a simple example of the JavaScript shiftkeypressed event
Read the rest of this entry »

Here’s the way to Extract Attributes from XML Data -

Example -
< xsl : template match="element-name" >
Attribute Value:
< xsl:value-of select="@attribute"/ >
< xsl:apply-templates/ >


Additionally, for the XML parser to ignore a certain section of your XML document, which syntax is correct?


< ! [CDATA[ Text to be ignored ]] >

mouseButtonclickEvent-

< html >
< head >

< script type="text/javascript" >
function whichButton()
{
if (event.button==1)
{
alert(”Left mouse button was clicked!”)
}
else
{
alert(”Right mouse button was clicked!”)
}
}
< /script >
< /head >
Read the rest of this entry »

To integrate javascript with the html, the following syntax must be used:
< script language=“JavaScript” >
Javascript program
< / script >
Read the rest of this entry »

• Javascript is integrated with HTML and Navigator2.02.
• Javascript facilitates the developer with the properties related to document windows ,frames,forms,loaded documents and links.
• This is an interpreter based language and the source code files are directly executed at runtime.
Read the rest of this entry »