SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    do righteous deeds
    Join Date
    Aug 2006
    Location
    Türkiye Turkey تركيى
    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.

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


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
  •