RE: [GD-Windows] Opening a browser window
Brought to you by:
vexxed72
|
From: Brian S. <bs...@mi...> - 2001-12-03 21:22:42
|
You could do it with a bit of JavaScript hackery.
A link like this will launch your url in a new window:
javascript:open("http://www.pyrogon.com","brians_new_window")
Of course to be really clever you probably want to execute some more
javascript to have the first window go back to the page it was on
(because you wouldn't want the user to lose the X10.com ad that had
popped up). And at that point, you're probably talking about writing
your Javascript to a file and viewing that in the browser instead of a
one-liner. =20
But it's a start...
--brian
-----Original Message-----
From: Brian Hook [mailto:bri...@py...]=20
Sent: Monday, December 03, 2001 1:01 PM
To: gam...@li...
Subject: [GD-Windows] Opening a browser window
Right now I'm opening a browser window using:
ShellExecute( NULL,=20
"open",=20
"http://www.pyrogon.com",=20
NULL,=20
NULL,=20
0 );
This works fine, however it has a notable problem in that it usurps
existing open browser windows. While annoying, it's also really bad
when you accidentally take over a pop up ad which may have a reduced set
of functionality (no scroll bars, no resizing) and which may also be
instinctively closed without realizing that it's no longer a popup ad.
I'd like to be able to force open a new browser window altogether
without having to know the name of the app they use for their browsers.
I suppose that in the worst case I could query what app they use for
file type URL and then use that...but damn, that seems nasty. Is there
a simpler way?
Brian
_______________________________________________
Gamedevlists-windows mailing list
Gam...@li...
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
|