473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Restricting an open browser window

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.

Jul 22 '05 #1
13 1832
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

"Dave Holmes" <jd******@charm.net> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
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.

Jul 22 '05 #2
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.

Jul 22 '05 #3

"Dave Holmes" <jd******@charm.net> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
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"!)
Thanks.

Jul 22 '05 #4
> but that doesn't really help me.
So what you're saying is that there isn't a way?

Bob Lehmann

"Dave Holmes" <jd******@charm.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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.

Jul 22 '05 #5
>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" <mm******@spamfromyou.com> wrote in message
news:eJ****************@tk2msftngp13.phx.gbl...
"Dave Holmes" <jd******@charm.net> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
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"!)
Thanks.


Jul 22 '05 #6
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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.


User Agent Switcher - Firefox Extension
https://addons.mozilla.org/extension...info.php?id=59
Jul 22 '05 #7
Gazing into my crystal ball I observed "Bob Lehmann"
<no****@dontbotherme.zzz> writing in
news:#j**************@tk2msftngp13.phx.gbl:
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?

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #8
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.

Jul 22 '05 #9
Dave Holmes wrote:
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.
Jul 22 '05 #10
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

"Adrienne" <ar********@sbcglobal.net> wrote in message
news:Xn****************************@207.115.63.158 ...
Gazing into my crystal ball I observed "Bob Lehmann"
<no****@dontbotherme.zzz> writing in
news:#j**************@tk2msftngp13.phx.gbl:
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?

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #11
"Adrienne" wrote in message
news:Xn****************************@207.115.63.158 ...
: Gazing into my crystal ball I observed "Bob Lehmann"
: <no****@dontbotherme.zzz> writing in
: news:#j**************@tk2msftngp13.phx.gbl:
:
: >>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
Jul 22 '05 #12
Gazing into my crystal ball I observed "Roland Hall" <nobody@nowhere>
writing in news:u4**************@TK2MSFTNGP10.phx.gbl:
"Adrienne" wrote in message
news:Xn****************************@207.115.63.158 ...
: Gazing into my crystal ball I observed "Bob Lehmann"
: <no****@dontbotherme.zzz> writing in
: news:#j**************@tk2msftngp13.phx.gbl:
:
: >>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?

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #13
"Adrienne" wrote in message
news:Xn****************************@207.115.63.158 ...
: Gazing into my crystal ball I observed "Roland Hall" <nobody@nowhere>
: writing in news:u4**************@TK2MSFTNGP10.phx.gbl:
:
: > "Adrienne" wrote in message
: > news:Xn****************************@207.115.63.158 ...
: >: Gazing into my crystal ball I observed "Bob Lehmann"
: >: <no****@dontbotherme.zzz> writing in
: >: news:#j**************@tk2msftngp13.phx.gbl:
: >:
: >: >>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
Jul 22 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
2
by: nntp | last post by:
Are there other ways to open multile windows at once? <SCRIPT language="JavaScript"> function open1() { var open1 = window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
8
by: sneddo | last post by:
Ok I am trying to do the above, I have got a script that will restrict the length but it requires the user to enter the field and hit a key, before it will work. This would normaly be find, but...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.