473,544 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

href target Is Not Working In JS Generated Popup Window

Hello gurus! I am not a javascript person, so I hope there is a simple
answer / solution to this problem I'm having. I'm xposting this to the
HTML group, if perhaps this is an HTML issue.

I have a java applet which allows interaction through javascript. For
example, I can click a point on the applet and a new window will open
containing information about the point I clicked on. The information is
gathered via javascript & displayed in the pop-up window.

I have two href tags being displayed in the pop-up window. They look
like this:

<td><a
href='javascrip t:opener.docume nt.mapApplet.se lectObject(\""+ lyrId+"\","+
rec.getId()+"); '>On Map</a></td><td><a
href='http://host/page.php?id="+r ec.getId()+"
target=\"_blank \"'>Detailed Information</a></td>

The second one is the one I'm having a problem with. I wish to have
that link open in a *NEW* window (not the pop-up window, nor the
original window with the java applet). Regardless of what target I set
(e.g., _blank, _top, _new), the link always opens in the pop-up window.
I can set <base target="_blank" > in the head section of my HTML
(pop-up window), and that fixes the problem - however, it screws up the
first link which still needs to interact with the java applet window.

What can I do? I just want that one little link to open in a new window.

Thanks for your help.
Jul 20 '05 #1
2 4921

"MotherBore d" <mo*********@no spam.newgulfwar .com> schreef in bericht
news:84******** ********@fe01.a tl2.webusenet.c om...
....

I have two href tags being displayed in the pop-up window. They look
like this:

<td><a
href='javascrip t:opener.docume nt.mapApplet.se lectObject(\""+ lyrId+"\","+
rec.getId()+"); '>On Map</a></td><td><a
href='http://host/page.php?id="+r ec.getId()+"
target=\"_blank \"'>Detailed Information</a></td>

The second one is the one I'm having a problem with. I wish to have
that link open in a *NEW* window (not the pop-up window, nor the
original window with the java applet). Regardless of what target I set
(e.g., _blank, _top, _new), the link always opens in the pop-up window.
I can set <base target="_blank" > in the head section of my HTML
(pop-up window), and that fixes the problem - however, it screws up the
first link which still needs to interact with the java applet window.

What can I do? I just want that one little link to open in a new window.


I think that this is a matter of displaced quotes.

Try this:

<td><a
href='javascrip t:opener.docume nt.mapApplet.se lectObject(\""+ lyrId+"\","+
rec.getId()+"); '>On Map</a></td><td><a
"href='http ://host/page.php?id="+r ec.getId()+"'
" target=\"_blank \">Detailed Information</a></td>
JW

Jul 20 '05 #2
In article <3f************ ***********@new s.euronet.nl>, "Janwillem Borleffs"
<jw*@jwbfoto.de mon.nl> writes:
<td><a
href='javascri pt:opener.docum ent


http://www.jibbering.com/faq/#FAQ4_24
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.
Jul 20 '05 #3

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

Similar topics

10
14681
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to in VB. I've created an ASP interface where a user can select an email group that populates a listbox with those email addresses. If a user sees...
6
167406
by: Jez | last post by:
Hi, I've created a function which opens a popup window containing a calendar. When a day is clicked, the date is entered into a text box on the parent page and the popup is closed. The link I'm using on the parent page is ... <a href="#" onClick="popupcal()">choose date</a>
1
4231
by: Lars Vatland | last post by:
Hello, if i have frameset frame name=A frame name=B How can i target all links in A to B? Via a script in the frameset? (i can only code the frameset file, not the frames) Maybe something like:
11
2001
by: Dana Smith | last post by:
Can anybody explain why when I have a hyperlink on a page with the code similar to below, after the user clicks on the link, the desired window opens but the page with the hyperlink changes to a new page with simply the value "" on it? I want the original page to remain unchanged.... thanks for the insight to a javascript n00bie... :) <a...
3
1672
by: Mel | last post by:
can i specify width and height of the popup window in my href ? something like: <a href=xxxx width=200 height=200 target=AAA>YYYYYYYYYYY</a> OBVIOUSLY that did not work ! thanks for your help Mel
53
81664
by: usenet | last post by:
See <ul> <li><a name="link1" onClick="alert(this.name);return false;" href="#">Link1</a></li> <li><a name="link2" href="javascript:alert(this);">Link2</a></li> <li>Item 3</li> </ul> Clicking on the first list item gives me "link1" because "this" refers
1
10425
by: Leon | last post by:
From parent windows, I have created a popup windows that comprises two frames. When I have clicked a link button in one of the frames, I would like to redirect the parent windows to somewhere. So I did ------------------------------------------------------------------ <a href='#' onclick='window.opener.location.href...
10
3712
by: Gernot Frisch | last post by:
Hi, I'm currently writing: <span onclick="window.open(...);">Klick Here</span> but I want to use the <a href> for this, since it is defined in the css script the way I want my link to open. Now, if I use a href, the href will be executed as well. What can I du in order to make the href not execute if javascript is enabled?
2
2836
by: Wolfman | last post by:
Hi guys I recently added a popup HREF script to a page, but I'd also like to make the page itself change when the HREF command is clicked. When the user clicks, not only would the popup window appear, but the originating page would change to another as well. I thought it'd be a rather straightforward proposition, but I can't seem to get the...
0
7434
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7622
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7388
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7716
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5305
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3420
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
676
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.