|
As far as I know, you cannot open a browser from the command prompt without a toolbar. Also, you cannot remove the toolbar from a browser once it is open. What we do is open a window that loads a page, where the page loaded only opens another window without a toolbar, and then closes itself. However, there is a trick to this. Normally if you have a javascript that tries to use window.close(), and the window was not opened using window.open() (or from a link in an already open window with a different "target" attribute), it will prompt the user if they really want to close the window. You can get around this by setting the window.opener attribute to itself. This will allow you to close the parent window without a prompt. Hopefully you were able to follow all that. Let me know if you have any questions. Here is my html page that opens the new window and closes itself: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <script> var features = "location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=no"; var url = "/somefolder/somepage.html"; var win = window.open(url, "", features); win.focus(); /* workaround that allows a window that was opened from a command prompt to be closed using javascript */ window.opener = window; window.close(); </script> </head> <body> </body> </html> -----Original Message----- From: web400-bounces@xxxxxxxxxxxx on behalf of Kevin Touchette Sent: Fri 8/26/2005 2:14 PM To: web400@xxxxxxxxxxxx Subject: [WEB400] Pop up initial browser without toolbars Hello, Can anyone point me to an example of how to start a cgi application in a web browser minus all toolbars. I have a way of opening a pop up window from an existing open web browser but I want to launch the application in a toolbarless browser. How can I do that? Would I do it as a redirect? With an onload statement? Thanks in advance. _______________________________________________ Kevin R. Touchette Washington Corporations Web and Application Development E-mail: KTouchette@xxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.