Thanks for your reply....Can you tell wat is t difference b\w "type="text\vbscript" and language="text\vbscript".many programs are running only using the second format.Too the code below is not doing the addition to calculate the fibonacci series...can you plz help- <html><head><script type="text\vbscript">function fib(n)if (n=0) or (n=1) thendocument.write("zero")exit functionend ifif (n=2) thendocument.write("one")exit functionend ifdim old,current,new,jold=cint(0)current=cint(1)document.write(old & "<br>" & current & "<br>" )for j=3 to n step 1new = old + currentdocument.write(new &"<br>")nextend function</script></head><body><form name="form">Enter the number of terms to calculate:<input type="text" name="t1"><br><input type="button" value="click" OnClick="fib(form.t1.value)"></form></body></html>