Skip to main content

Posts

Showing posts from August 31, 2010

JAVASCRIPT Problems

Hello Students check these javascript problems Add new elemts at the beginning of array <html > <body > <script language="javascript" > var scripts=new Array(); scripts[0]="PHP"; scripts[1]="ASP"; scripts[2]="JAVASCRIPT"; scripts[3]="HTML"; document.write(scripts.join("< br > ")); document.write("< br >---- NOW AFTER APPLYING unshift()---< br >"); scripts.unshift("VBSCRIPT","PERL"); document.write(scripts.join("< br >")); </script > </body > </html > Display Today's date and Time < html > < title > < /title > < body > < script language="javascript" > var d=new Date; document.write("< b > "+d); < /script > < /body > < /html > Add an element to position 2 in an array < html > < body > < script type=...