I made an html-page with this line in it:
<A HREF="http://www.bla.com" onClick="javasc ript:window.clo se()"
target="moeder" >link</A>
It works very well in Internet Explorer, but in Netscape 7 the url isn't
opened in the moeder window. How come and how can I fix it so it works in
Netscape too? Thanks in advance for any answers.
Mrco 4 2561
Marco wrote: I made an html-page with this line in it:
<A HREF="http://www.bla.com" onClick="javasc ript:window.clo se()" target="moeder" >link</A>
It works very well in Internet Explorer, but in Netscape 7 the url isn't opened in the moeder window. How come and how can I fix it so it works in Netscape too? Thanks in advance for any answers.
Mrco
<a href="http://www.bla.com"
target="moeder"
onclick="window .open(this.href , this.target);wi ndow.close();re turn
false;">link</a>
Note that if the window you are trying to close wasn't opened by script,
Netscape will fail with an error in the JavaScript Console of: "Scripts may
not close windows that were not opened by script."
--
| Grant Wagner <gw*****@agrico reunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
"Grant Wagner" <gw*****@agrico reunited.com> wrote in message
news:3F******** *******@agricor eunited.com... Marco wrote:
I made an html-page with this line in it:
<A HREF="http://www.bla.com" onClick="javasc ript:window.clo se()" target="moeder" >link</A>
It works very well in Internet Explorer, but in Netscape 7 the url isn't opened in the moeder window. How come and how can I fix it so it works
in Netscape too? Thanks in advance for any answers.
Mrco <a href="http://www.bla.com" target="moeder" onclick="window .open(this.href , this.target);wi ndow.close();re turn false;">link</a>
Thanks for the reply, but moeder already exists and this opens a new window.
I want to open the url in the existing moeder window.
Note that if the window you are trying to close wasn't opened by script, Netscape will fail with an error in the JavaScript Console of: "Scripts
may not close windows that were not opened by script."
Yeah, I know. Unfortunately I am not the one who decides how the window is
opened. Different project. Can't have it all. :)
Regards,
Marco
"Grant Wagner" <gw*****@agrico reunited.com> wrote in message
news:3F******** *******@agricor eunited.com... Marco wrote:
I made an html-page with this line in it:
<A HREF="http://www.bla.com" onClick="javasc ript:window.clo se()" target="moeder" >link</A>
It works very well in Internet Explorer, but in Netscape 7 the url isn't opened in the moeder window. How come and how can I fix it so it works
in Netscape too? Thanks in advance for any answers.
Mrco <a href="http://www.bla.com" target="moeder" onclick="window .open(this.href , this.target);wi ndow.close();re turn false;">link</a>
Thanks for the reply, but moeder already exists and this opens a new window.
I want to open the url in the existing moeder window.
Note that if the window you are trying to close wasn't opened by script, Netscape will fail with an error in the JavaScript Console of: "Scripts
may not close windows that were not opened by script."
Yeah, I know. Unfortunately I am not the one who decides how the window is
opened. Different project. Can't have it all. :)
Regards,
Marco
Marco wrote: "Grant Wagner" <gw*****@agrico reunited.com> wrote in message news:3F******** *******@agricor eunited.com... Marco wrote:
I made an html-page with this line in it:
<A HREF="http://www.bla.com" onClick="javasc ript:window.clo se()" target="moeder" >link</A>
It works very well in Internet Explorer, but in Netscape 7 the url isn't opened in the moeder window. How come and how can I fix it so it works in Netscape too? Thanks in advance for any answers.
Mrco
<a href="http://www.bla.com" target="moeder" onclick="window .open(this.href , this.target);wi ndow.close();re turn false;">link</a>
Thanks for the reply, but moeder already exists and this opens a new window. I want to open the url in the existing moeder window.
Note that if the window you are trying to close wasn't opened by script, Netscape will fail with an error in the JavaScript Console of: "Scripts may not close windows that were not opened by script."
Yeah, I know. Unfortunately I am not the one who decides how the window is opened. Different project. Can't have it all. :)
Regards,
Marco
When window.open() is called a second time with the same window name (second
parameter), it loads the content into the same window instance.
Ignoring the window.close() for a second, please try the following code:
<a href="http://www.bla.com"
target="moeder"
onclick="window .open(this.href , this.target);re turn false;">link 1</a>
<a href="http://www.yahoo.com"
target="moeder"
onclick="window .open(this.href , this.target);re turn false;">link 2</a>
Tested in IE6SP1, Netscape 4.78, Mozilla 1.5a and Opera 7.11. In all browsers,
no matter how many times I clicked the links in sequence or one after another, I
only ever had one new window opened. This is the way window.open() is supposed
to work.
--
| Grant Wagner <gw*****@agrico reunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: rez |
last post by:
I find it rather frustrating that Netscape 4.x is "no longer
supported:"
http://help.netscape.com/products/client/communicator/reflib.html
Same seems true with IE.
How am I ever supposed to make my scripts multi-browser, when they
don't bother giving me basic
documentation?
|
by: Scott |
last post by:
Hello All,
I've been reading all of the various issues with Iframes in netscape.
I have tried all of the various fixes posted, and have even
implemented both an iframe and ilayer. My problem is that no matter
which i use, i can access the src before and after i change it, but
the page never displays. in IE6 it works no matter how i access it.
here is the code that is changing it:
function InternalNav(sPage) {
|
by: Dom |
last post by:
I have a frameset with a left right columns, called 'index' and
'content'.
The left column of the frameset ('index') loads an index.htm file
which have these hrefs (summarized the code a bit) for readability :
<a href="studio/index.htm" target=content id="studio"> studio </a>
<a href="bandw/index.htm" target=content id="bandw"> bandw </a>
<a href="arch/index.htm" target=content id="arch"> arch </a>
<a href="etc/index.htm" ...
|
by: The Pistoleer |
last post by:
I have an inconsistent problem with some Internet pages when using Netscape
(7.1) that I cannot reproduce with IE nor locally. Below is an example
link.
There are several tables on the pages. The tables at the top containing
small images are working correctly. The tables below that contain product
descriptions and input to purchase an item, these table have a problem with
Netscape. Sometimes one or more of these tables will just...
|
by: Jonas Smithson |
last post by:
Hello all,
I have an absolute positioned parent div, and nested inside it is an
absolute positioned child div -- I mean the div *code* is nested
inside, but the child is physically positioned so that it's completely
outside the parent div (to the left of its parent, in a left-side
margin area). The child div contains hyperlinks.
Explorer 6 (on Windows) has no problem with this. However, in Netscape
6, the links are unclickable. I...
| |
by: AMC |
last post by:
Hi,
I have the below code in an asp page. When I run this page in IE or Opera it
correctly displays the header info and does not redirect me to 'test.html'.
However, when I run this in Netscape it goes straight to the redirect page
'test.html' which indicates that javascript is not enabled and it also does
not display the header info. Can someone tell me why this is happening?
<%@ Language=VBScript%>
<%'get header info
|
by: Christina Joch |
last post by:
My Website (Template) uses JavaScript to create a pop-up window in the
gallery.
With IE it works fine, but not with my Netscape 7.0.
No Pop up apears.
In the script I found the line:
if (browser_type == "Microsoft Internet Explorer" && (browser_version >=
4) && (navigator.userAgent.indexOf("Windows") != -1)) {
|
by: sihnstarr |
last post by:
I have a pop-up window that contains a chart with a list of links.
When the link is clicked, it is supposed to close the pop-up window and
navigate to the page selected from the pop-up in the parent window.
This works in IE but not in Netscape 7, 4 or Firefox.
Here is a sample of the link code:
<a href="blah.asp" class="otherlinks_sm" target="parentContent"
onMouseUp="javascript:self.close();">The Link</a>
|
by: Vik |
last post by:
1. To show the sort order in a datagrid, a label is added to the datagrid
header in the ItemCreated event (this method is taken from a book):
With lblSorted
..Font.Name = "Webdings"
..Font.Size = FontUnit.XSmall
..Text = IIf(blnSortDir, " 5", " 6")
End With
This label is rendered as
<span style="font-family:Webdings;font-size:X-Small;"> 5</span>In IE 6 it
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |