about 9 years ago
For writing dynamic html on the html document, we use innerHTML property of javascript. It is basically used in the web pages to create the dynamic html such as registration form, comment form etc.
Example
<html> <body> <script type="text/javascript" > function showform() { var data="Name:<br><input type='text' name='name'><br>Comment:<br><textarea rows='5' cols='50'></textarea><br><input type='submit' value='comment'>"; document.getElementById('myloc').innerHTML=data; } </script> <form name="myForm"> <input type="button" value="comment" onclick="showform()"> <div id="myloc"></div> </form> </body> </html>
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)