The example below creates a multiplication table after the user specifies the maximum number. The table is created by using both the innerHTML property and the createElement method. It is important to note that the createElement method is only part of the document object whereas the innerHTML element can be used with many different types of HTML elements.
Related Search Results
- JavaScript Snippet - Get Current HTML Code:
Learn how to access the HTML code that composes the page at this exact moment. - JavaScript Snippet - getOrdinalFor(...):
Get the JavaScript code snippet which allows you to add the correct ordinal to any integer. - JavaScript - Why Use getAttribute(...) In JavaScript?:
Learn why getAttribute is at times more useful that dot notation and bracketed notation. - JavaScript - ezCalendar:
Provides a JavaScript solution for selecting dates from a calendar. - JavaScript - GET Object Emulation:
Learn how to emulate the GET object with JavaScript.
Powered by jPaq.