Restricting an open browser window

D

Dave Holmes

Is there a way to keep an other application from opening a link in a
browser where I am running an ASP application?

For example, I have an ASP application open in a browser. If I click on
a link in an email message, Outlook "hijacks" the open browser and
opens opens the link in it. Is there a way to prevent this? To somehow
identifiy that browser window as "off limits" to another app?

Thanks.
 
R

Ray Costanzo [MVP]

Is there any way for you to control it on your computer? Possibly. Is
there a way for you as the Web site owner to control it? No, definitely
not.

Ray at work
 
D

Dave Holmes

There is a way to control it on your computer for IE (Internet Options
-> Advanced Tab -> uncheck "Reuse windows for launching shortcuts", but
that doesn't really help me.
 
M

Mark J. McGinty

Dave Holmes said:
Is there a way to keep an other application from opening a link in a
browser where I am running an ASP application?

For example, I have an ASP application open in a browser. If I click on
a link in an email message, Outlook "hijacks" the open browser and
opens opens the link in it. Is there a way to prevent this? To somehow
identifiy that browser window as "off limits" to another app?

That is not a hijacking, it's called a protocol handler, and it's only
Outlook on your system because you installed it there, could be OE, Eudora,
Lotus Notes, Novel's funky CRM thing or any of dozens [if not hundreds] of
other handlers.

It would have to be disabled on a client-by-client basis, and it couldn't be
done just for your pages. It would also need to be done from an exe, if
it's possible from script, it'd be a vulnerability that would surely be
patched if discovered.

Would you also want to get rid of the context menu options to open in a new
window? It might be possible but again, it would impact the whole client
system.

Remember that as *ethical* developers (as opposed to the worthless trash
that develops malware for whatever reasons) we have a duty to respect the
client system and do everything in our power to preserve its integrity.

Whatever your goals are, they should be considered in that light.


-Mark


(Jobs are cheap, don't code anything that compromises your ethics, for any
amount of money, doing so degrades your own career, and it weakens IT as a
whole. Developers unite! Just say "NO"!)
 
B

Bob Lehmann

but that doesn't really help me.
So what you're saying is that there isn't a way?

Bob Lehmann
 
B

Bob Lehmann

Remember that as *ethical* developers (as opposed to the worthless trash
that develops malware for whatever reasons) we have a duty to respect the
client system and do everything in our power to preserve its integrity.

You mean like the way msn.com doesn't respect the client if it happens to be
FireFox? For starters; Right-click most links at msn.com in FireFox.

Bob Lehmann

Mark J. McGinty said:
Dave Holmes said:
Is there a way to keep an other application from opening a link in a
browser where I am running an ASP application?

For example, I have an ASP application open in a browser. If I click on
a link in an email message, Outlook "hijacks" the open browser and
opens opens the link in it. Is there a way to prevent this? To somehow
identifiy that browser window as "off limits" to another app?

That is not a hijacking, it's called a protocol handler, and it's only
Outlook on your system because you installed it there, could be OE, Eudora,
Lotus Notes, Novel's funky CRM thing or any of dozens [if not hundreds] of
other handlers.

It would have to be disabled on a client-by-client basis, and it couldn't be
done just for your pages. It would also need to be done from an exe, if
it's possible from script, it'd be a vulnerability that would surely be
patched if discovered.

Would you also want to get rid of the context menu options to open in a new
window? It might be possible but again, it would impact the whole client
system.

Remember that as *ethical* developers (as opposed to the worthless trash
that develops malware for whatever reasons) we have a duty to respect the
client system and do everything in our power to preserve its integrity.

Whatever your goals are, they should be considered in that light.


-Mark


(Jobs are cheap, don't code anything that compromises your ethics, for any
amount of money, doing so degrades your own career, and it weakens IT as a
whole. Developers unite! Just say "NO"!)
 
A

Adrienne

You mean like the way msn.com doesn't respect the client if it happens
to be FireFox? For starters; Right-click most links at msn.com in
FireFox.

Holy Right Mouse Button Batman! I never knew that, but then, I use
Opera, and I very rarely go to msn.com anyway. That's really
interesting. A while back, MSDN was doing some browser sniffing so Opera
was getting left out. Now, I guess they're attacking Firefox. Why
can't we all just get along?
 
D

Dave Holmes

The app in question is on a secure intranet, so we already control
every aspect of the client system. It would just be easier to
accomplish if a browser could be made "hijack proof".

Thanks for the ethics lecture, anyway.
 
D

Dave Anderson

Dave said:
Is there a way to keep an other application from opening a link in a
browser where I am running an ASP application?

For example, I have an ASP application open in a browser. If I click
on a link in an email message, Outlook "hijacks" the open browser and
opens opens the link in it. Is there a way to prevent this? To somehow
identifiy that browser window as "off limits" to another app?

One thing that comes to mind:
http://www.webreference.com/dhtml/diner/beforeunload/

Use with care.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
B

Bob Lehmann

I guess they're trying to prevent people from using tabbed browsing, which
their old-dog browser doesn't have.

I rarely use msn.com any more because of that.

Probably doesn't matter to them though since since I've AdBlocked (another
feature IE doesn't have) most of their revenue sources, which I wouldn't
click on anyway.

Bob Lehmann
 
R

Roland Hall

in message
: Gazing into my crystal ball I observed "Bob Lehmann"
: <[email protected]> writing in
: :
: >>Remember that as *ethical* developers (as opposed to the worthless
: >>trash that develops malware for whatever reasons) we have a duty to
: >>respect the client system and do everything in our power to preserve
: >>its integrity.
: >
: > You mean like the way msn.com doesn't respect the client if it happens
: > to be FireFox? For starters; Right-click most links at msn.com in
: > FireFox.
: >
: >
:
: Holy Right Mouse Button Batman! I never knew that, but then, I use
: Opera, and I very rarely go to msn.com anyway. That's really
: interesting. A while back, MSDN was doing some browser sniffing so Opera
: was getting left out. Now, I guess they're attacking Firefox. Why
: can't we all just get along?

I don't know if this is the correct browser but I though Opera could lie and
could be disguised as being IE or any other browser?!

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 
A

Adrienne

in message
: Gazing into my crystal ball I observed "Bob Lehmann"
: <[email protected]> writing in
: :
: >>Remember that as *ethical* developers (as opposed to the worthless
: >>trash that develops malware for whatever reasons) we have a duty to
: >>respect the client system and do everything in our power to preserve
: >>its integrity.
: >
: > You mean like the way msn.com doesn't respect the client if it
: > happens to be FireFox? For starters; Right-click most links at
: > msn.com in FireFox.
: >
: >
:
: Holy Right Mouse Button Batman! I never knew that, but then, I use
: Opera, and I very rarely go to msn.com anyway. That's really
: interesting. A while back, MSDN was doing some browser sniffing so
: Opera was getting left out. Now, I guess they're attacking Firefox.
: Why can't we all just get along?

I don't know if this is the correct browser but I though Opera could
lie and could be disguised as being IE or any other browser?!

Opera can lie, but it still says Opera in the UA string, like:
"Hi, I'm Jennifer Garner disguised as Mother Theresa." And who is Michael
Vaughn really?
 
R

Roland Hall

in message
: Gazing into my crystal ball I observed "Roland Hall" <nobody@nowhere>
: writing in :
: > "Adrienne" wrote in message
: > : >: Gazing into my crystal ball I observed "Bob Lehmann"
: >: <[email protected]> writing in
: >: : >:
: >: >>Remember that as *ethical* developers (as opposed to the worthless
: >: >>trash that develops malware for whatever reasons) we have a duty to
: >: >>respect the client system and do everything in our power to preserve
: >: >>its integrity.
: >: >
: >: > You mean like the way msn.com doesn't respect the client if it
: >: > happens to be FireFox? For starters; Right-click most links at
: >: > msn.com in FireFox.
: >: >
: >: >
: >:
: >: Holy Right Mouse Button Batman! I never knew that, but then, I use
: >: Opera, and I very rarely go to msn.com anyway. That's really
: >: interesting. A while back, MSDN was doing some browser sniffing so
: >: Opera was getting left out. Now, I guess they're attacking Firefox.
: >: Why can't we all just get along?
: >
: > I don't know if this is the correct browser but I though Opera could
: > lie and could be disguised as being IE or any other browser?!
: >
:
: Opera can lie, but it still says Opera in the UA string, like:
: "Hi, I'm Jennifer Garner disguised as Mother Theresa." And who is Michael
: Vaughn really?

(O:=

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top