in reply to perlscript to close internet explorer?

Why not just use this?...
print qq[<script>close()</script>];

The user won't have to click the link. Instead, it'll just popup the confirm box making sure they want to close the window.

BTW, Get rid of those nasty_escaped_quotes! : P

Joshua

Replies are listed 'Best First'.
Re^2: perlscript to close internet explorer?
by Aristotle (Chancellor) on Jun 05, 2002 at 06:26 UTC
    joshua++ for a pragmatic solution. :-)
    ____________

    Makeshifts last the longest.
Re: Re: perlscript to close internet explorer?
by doojinsi (Novice) on Jun 05, 2002 at 11:52 UTC
    hmmm...

    the <script></script> snippet would be called when the fatal error occurred?

    If so, it doesn't exactly follow the flow, which is:

    1. good things happen -> user clicks exit button -> processing shuts down -> user closes browser

    2. BAD things happen -> user sees fatal error screen where s/he must record some info for others to help resolve -> user clicks EXIT button and (hopefully) browser closes.

    If I issue <script>close() when the fatal error occurs, wouldn't this preclude the error screen from appearing? The idea is that s/he MUST do something with the info on the error page.
      Well, I guess you didn't make it clear that it was imperative for the user to see that fatal error until your previous message. I do have another solution though...

      You could open a new window for the processing,
      <form action="process.cgi" method="POST" target="process">
      Then, if there is a fatal error and the user clicks the close window button, IE wont prompt them. (It doesn't prompt on new windows, just their parents.)

      hth.
      Joshua

        Thanks for the idea, Joshua, I'll take it under advisement while I consider exactly what I want the app to do in certain conditions.

        Dooj