#1
  1. No Profile Picture
    benson1001
    Guest
    Devshed Newbie (0 - 499 posts)

    I have written a perl program which does some functions, in a pop up window. But I want to close the window after all the processes.

    I use javascript and
    I know how to close using "window.close()" function;

    But how will I do it through perl program?

    Any help will be appreciated.

  2. #2
  3. No Profile Picture
    thelem
    Guest
    Devshed Newbie (0 - 499 posts)
    What about having the script print
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre><SCRIPT>window.close()</SCRIPT>[/quote]
    when everything has finished?

    Lemming
  4. #3
  5. No Profile Picture
    AjayLulia
    Guest
    Devshed Newbie (0 - 499 posts)
    use this lines in ur perl program


    print qq!<script>
    window.close()
    </script>!;

    ------------------
    Ajay Lulia.

  6. #4
  7. No Profile Picture
    benson1001
    Guest
    Devshed Newbie (0 - 499 posts)
    I want to know how to close the pop up window. "window.close()" closes the current window. Mostly when the perl script is called,one is not targeting any window or html file. How should I activate any particular html file's javascript.

IMN logo majestic logo threadwatch logo seochat tools logo