SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Threaded View

  1. #1
    SitePoint Addict
    Join Date
    Aug 2006
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htmlcode = newWin.document.getElementsByTagName('html')[0].innerHTML;

    Message box is not coming. It is not displaying the source code. What can I do? Is there any way do this? Thanks...
    Code:
     
    <script type="text/javascript">
    
    var newWin = window.open("http://www.yahoo.com");
    
    function show() {
    htmlcode = newWin.document.getElementsByTagName('html')[0].innerHTML;
    alert(htmlcode);
    }
    </script>
    
    <script type="text/javascript">
    
    setTimeout("show()",5000);
    
    </script>
    Last edited by muazzez; May 12, 2007 at 05:55.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •