Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Printing two documents

    Hi
    I am doing printing function.

    Here is the code

    Code:
       var myWindow = window.open('', '', 'width=200,height=100');
                        myWindow.document.write('<html><head>');
                        myWindow.document.write('<title>' + '' + '</title>');
                        myWindow.document.write('</head><body>');
                        myWindow.document.write(targetElement.body.dom.innerHTML);
                        myWindow.document.write('</body>');
                        myWindow.document.write('</html>');
                        myWindow.print();
                        myWindow.close();
    I need to add the value of actionMsg
    Code:
    var actionMsg = actionMsgLabel.getText();
    at the end .

    When I add

    myWindow.document.write(actionMsg); It is printed at the middle of page..I need to print at the end .

    Anybody help me

    Thanks

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,482
    Thanks
    6
    Thanked 981 Times in 954 Posts
    Why are you posting this in the HTML/CSS section? Moved to JavaScript.


  •  

    Tags for this Thread

    Posting Permissions

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