PDA

View Full Version : Need Some Help With WebBrowserWindow DLL Getting Window Closed


coderanger
08-10-2007, 01:29 AM
Hi Gang,

I'm playing around with a few ideas, and I'm using Sside's great DLL
WebBrowserWindow.

So far, I've got everything working the way I want, but I'm having issues
getting the window to close, and I'm wondering if anyone here might have
some insights on this.

Okay, I open a browser window in full screen mode (no title bar) via my
applications menu. Once open, everything works fine, but I can't figure
out how to get the window closed.

I'm loading a web page on my server, and I've tried using the following
javascript to close the window:

I've tried this:

<a href="javascript:self.close()">Close the window</a>

..and I've tried this:

<!-- This Goes Into Web Page Head Area -->
<script>
function closeWindow()
{
// Close the current window
window.close();
}
</script>

<!-- This Goes Into Web Page Body Area -->
<a href="javascript:closeWindow()">Close the window</a>

..but neither one of them work.

After I click on my javascript close link on the web page, everything just
seems to freeze up, and the only way to get it closed after that is to use
alt+ctr+del and choose the window instance in Windows Task Manager.

Does anyone have a possible solution to this problem?

Any help would be greatly appreciated.

Thanks for your time,
Patrick