PDA

View Full Version : Javascript Close Window Problem


Mulgravia
07-28-2003, 08:52 AM
Hi,

I have a problem closing a page on my PC.

I use a mini type website on my PC which I use for all my links including online banking etc.. it is built around 35 files.

It works fine and I have been using it for about 3 years now. Recently when closing my front page using javascript it will not close the page it only runs the progress bar then stops.

I normally use Netscape 7.1 browser.
The close window still works with MS IE.

Here is the script.
<form action="javascript:window.close()">
<input type="submit" name="close" value="Close This Window">
</form>

I have tried other similar scripts with the same result. I am pretty certain that is nothing to do with the script itself, and that it is probably Netscape and/or Jvascript itself.

Regards
Art
UK.
:confused:

glenngv
07-28-2003, 08:59 AM
Have you tried to make it simpler?

<form>
<input type="button" name="close" value="Close This Window" onclick="window.close()">
</form>

Mulgravia
07-28-2003, 07:34 PM
Thank you..........

To all of you who offered help and advice with my JavaScript "Window Close" problem, which is now rectified.

Because all the script recommendations were similar to my original, I figured the problem must be elsewhere, so I hit on Netscape 7.01 which I reloaded from the CD, on top of the existing installation and thankfully it is now fixed.

The problem appears to have been that JavaScript was either not properly installed or it was corrupted.

I hope this may be of help to anyone else who may experience the same problem.

Thank you all once again
Art.
UK.
:thumbsup: :)