
Open the same window without toolbars
Quote:
> I didn't know that was EVER possible.
> I'd be very interested in knowing how you can do that in an intranet, Joe.
> Thanks,
> Chris
> > > I have written an ASP app and want it to run without the
> > > toolbars and address box in the browser.
> > > I can open up a new browser window and run the app in
> > > there but I can't close down the original window without
> > > getting a confirmation box.
> > > Is there a way to have the original page reload itself
> > > without the toolbars?
> > Only possible on trusted site/intranet. If this is the case let me know
> and
> > I'll send code. I've already given this answer many times which you can
> see
> > by searching in the advaced google groups search.
> > Joe
function getBrowser()
{
var colWins = new ActiveXObject("Shell.Application").windows();
for (var i = 0; i < colWins.Count; i ++)
{
if (colWins(i).document.parentWindow === self)
{
return colWins(i);
}
}
return null;
Quote:
}
Put this function in page, only works if shell.application available.
(Active Desktop available if not enabled).
Once you have the browser object you can do almost anything with the
settings.
var oIE = getBrowser();
oIE.toolbar = false;
The object also has some extra properties like locationURL.
Joe