Código HTML:
<html> <head> <script type="text/javascript"> num=0; function ver(fil) { obj=fil.form; tab = document.createElement('div'); tab.id = 'calendario'; tab.style.padding = "1px"; obj.appendChild(tab); } </script> </head> <body> <form> <input type="button" onclick="ver(this)" /> </form> </body> </html>
Espero me puedan ayudar