Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to self.close() with no dialog?

Status
Not open for further replies.

cmayo

MIS
Apr 23, 2001
159
US
For an intranet kiosk app, I need a browser window to spawn another window without menus & navigation, then close itself. I'll set the first window as the browsers home page. No problem, except that, before closing the first window, the browser asks the user to confirm the close. Is there a way to force the window closed without the confirmation dialog?

Thanks,
 
only if it is a trusted app... you can use this activex control:

<OBJECT id=closes type=&quot;application/x-oleobject&quot; classid=&quot;clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11&quot;>
<param name=&quot;Command&quot; value=&quot;Close&quot;>
</object>

then call its close method:

closes.Click()
jared@eae.net -
 
I've never understood trusted apps, but will give it a try. Is IE4 a trusted app, or is there another way to designate trusted? And sorry to be so dense, but does the activex control go within the script tags?
 
put the ativex outside the script tags... one way to ensure the trustability (huh?) of an app is to make an HTA ( ). Otherwise, you just need to ensure that the client will accept activex controls from your site (shouldn't be a problem in an intranet/kiosk scenario). jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top