any idea on how to make table in javascripts? its like the system will ask the user how many rows and columns he wants and it will input in to multiplication table

I think this is your answer:

<script type="text/javascript">
            
            function enterSize()
            {
                x=prompt("Enter width:")
                y=prompt("Enter height:")
                
                for(var i=0; i<x; i++)
                {
                    document.write("<table id=table border=1 cellpadding=0 cellspacing=0>")
                    document.write(" <tr>")
                    
                    for (var j=0; j<y; j++)
                    {
                        document.write(" <td'>")
                        document.write(" </td>")
                    }
                    document.write(" </tr>")
                    document.write("</table>")                }
                
                
            }
            </script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.