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

Thread: printing

  1. #1
    New Coder
    Join Date
    Dec 2003
    Location
    ireland
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    printing

    yes i'm back again
    is it possible to acually use the printer to print a var say it was

    var goo = prompt("whats your name","")
    var fin_goo = " hello "+goo

    could i print fin_goo.
    or can you open another application using jscript say micro word



    thanks thrise again
    narf
    hello says narf
    and narf says hello

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    338
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could open a new window and print:

    Code:
    var goo = prompt("whats your name","");
    var fin_goo = " hello "+goo;
    var x = window.open();
    x.document.writeln(fin_goo);
    x.window.print();
    x.window.close();
    Hope that helps!

    Happy coding!


  •  

    Posting Permissions

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