By admin | January 26, 2008

How To Access Cookie Without any special Charecters

Generally, when we access javascript, wild card charecters are replaced by some special symbols (like +,% etc). This code is for accessing cookie value withour any special chacters. Try It. //Reading Cookie function ReadCookie(n) { var cookiecontent = new String(); if(document.cookie.length > 0) {  var cookiename = n+ ‘=’;  var cookiebegin = document.cookie.indexOf(cookiename);  var cookieend = 0;  if(cookiebegin > -1) {   cookiebegin += [...]
By admin | January 26, 2008

Handling forms in Javascript

This lesson will give an idea how to start using javascripts in forms <HTML> <BODY> <SCRIPT LANGUAGE=javascript> <!–      function f1(){      document.write(MyForm.name,”<Br>”,MyForm.textname.value,”<Br>”,MyForm.length)      } //–> </SCRIPT> </BODY> <FORM action=”" method=POST name=MyForm onclick=”f1()”> <INPUT type=”text” name=textname value=”Broken Arrow”> </FORM> </HTML>
By admin | January 26, 2008

Iteration in JavaScript

A lesson for the beginners - how to use iteration in Javascript <html> <body> <script>    <!–            b=1                  while (b>6){                 b= document.write(b);b+1;            }            document.write(b,”<br>”);       –> </script> </body> </html>
By admin | January 25, 2008

Alert in Javascript

This lesson will help the beginners to handle alerts in JavaScripts <html> <head> <script language=”javascript”> <!– function f1()  {  alert(”Skill Hut”); // Message ‘Skill Hut’ will be displayed  } –> </SCRIPT> </head> <body color=white> Move your mouse over <a href=”" onMouseover=”f1()”>here</a> </body> </html>
Ad

Calendar

November 2008
M T W T F S S
« Oct «-»  
 12
3456789
10111213141516
17181920212223
24252627282930

Search

Polls

  • Who will rule the world?

    View Results

    Loading ... Loading ...