View Single Post
  #1  
Old 18-12-2007, 03:46 PM
BSIT07-01's Avatar
BSIT07-01 BSIT07-01 is offline
Addicted to Computer


 
Join Date: Sep 2007
Location: ------------
Age: 36
Posts: 1,309
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
BSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant future
Default Table That I have done in Class


HTML Code:
<script language="javascript">
<!--
 var i;
 i=window.prompt("Enter Columns","2");
 i=parseInt(i);
 r=window.prompt("enter a no for rows","2")
 r=parseInt(r);
 if(i>0 && r>0) 
 {
 document.write("<table border=\"1\">");
 for (var k=1; k<=r; k++)
 {
  document.write("<tr>");
  for (var j=1; j<=i; j++)
  {
   s=window.prompt("enter data value","");
   document.write("<td>"+s+"</td>")
 
  }
  document.write("</tr>");
 }
 document.write("</table>")
 }
//-->
</script>

Attached Files
File Type: html Table.html (493 Bytes, 444 views)
Reply With Quote