How do I close a window from HTML |
How do I close a window from HTML |
John822179 |
May 29 2007, 01:46 AM
Post
#1
|
Group: Members Posts: 2 Joined: 29-May 07 Member No.: 2,942 |
Hi everyone.
I am using a HTML page to pass installation instructions to a user. I would like to add a CLOSE button to the HTML to close the window when the user is ready. Closing the window will allow the Installer to continue. I have done this is the past using the HTML help editor, but cannot find a way of doing it on a normal HTML page. Can anyone help me? John |
pandy |
May 29 2007, 07:05 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
You can't do it with HTML. You can do it with JavasScrript, 'window.close()', but if the window wasn't opened by JavaScript a warning prompt will pop up.
|
Darin McGrew |
May 29 2007, 11:00 AM
Post
#3
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Please see the FAQ entry How can I make a button that closes the window?
|
John822179 |
Jun 5 2007, 02:22 AM
Post
#4
|
Group: Members Posts: 2 Joined: 29-May 07 Member No.: 2,942 |
Hi everyone. I am using a HTML page to pass installation instructions to a user. I would like to add a CLOSE button to the HTML to close the window when the user is ready. Closing the window will allow the Installer to continue. I have done this is the past using the HTML help editor, but cannot find a way of doing it on a normal HTML page. Can anyone help me? John Hi Pandy & Darin, Thanks for your reply. I see what you mean about the error message. I think I will just tell the user to use the CLOSE button in the top right corner! Many thanks John |
Lo-Fi Version | Time is now: 4th May 2024 - 05:18 PM |