Stop external URL's loading within a browser window
Hi *, Seeing as the majority of people on this list are web developers, I thought this would be the place to ask my question. In hope that someone else has had the same issue and possibly has a solution. Within my Zope application, I load a small pop-up window in which I load a third party applet. My problem is when users click on an external link (say a URL contained in an email in Outlook etc.) it loads that site within the pop-up window containing my applet and clobbers all child applications loaded by that applet. Is there any way to stop this using JavaScript or some other mechanism? Thanks in advance, Michael Fox Web Analyst Programmer Century Software http://www.CenturySoftware.com.au Tel: +61-2-9460-1422 Fax: +61-2-9460-3098
learn to use the "target" attribute on the <a> tag. that's HTML basics. jens On Friday, May 16, 2003, at 01:23 US/Eastern, Michael Fox wrote:
Hi *,
Seeing as the majority of people on this list are web developers, I thought this would be the place to ask my question.
In hope that someone else has had the same issue and possibly has a solution.
Within my Zope application, I load a small pop-up window in which I load a third party applet. My problem is when users click on an external link (say a URL contained in an email in Outlook etc.) it loads that site within the pop-up window containing my applet and clobbers all child applications loaded by that applet.
Is there any way to stop this using JavaScript or some other mechanism?
Thanks in advance,
Michael Fox
On Friday 16 May 2003 04:46 am, Jens Vagelpohl wrote:
learn to use the "target" attribute on the <a> tag. that's HTML basics.
AFAIK, that won't help. The problem is that the new window will become the default window to open new URLs in -- so the next time someone uses a link *not under his control* which does not use "target", it clobbers his window. The only thing I can think of is to open a *second* window, which does not contain the relevant applet, so that *it* becomes the default target -- i.e. a decoy ;-). It'd be nice if you could keep the focus on the main browser window, but I'm uncertain if you can do that. Some of the options to window.open might do it (but I'm a real newbie with JavaScript myself). Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
participants (3)
-
Jens Vagelpohl -
Michael Fox -
Terry Hancock