Open a new document and add some text : Document : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Document »

 

Open a new document and add some text




<html>

<head>
<script type="text/javascript">
function docOpen(){
    document.open()
    document.write("<h3>Hello World!</h3>")
}
</script>
</head>

<body>
    
    <form>
    
        <input type="button" onclick="docOpen()" value="Open a new document">
    
    </form>
    
</body>

</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Document