Hi,
I think i made a mistake somewhere.... I can execute the following line
of code with Firefox but not IE... someone pls help!
<a href="#" onclick="window.open('video.html', 'Concert 2003: I
Remember...','width=378, height=250, left=500, top=160'); return false;">
If i only use the first part, both can execute it correctly...
e.g.
<a href="#" onclick="window.open('video.html');">
Thank you in advance... 7 1078
terry wrote: Hi,
I think i made a mistake somewhere.... I can execute the following line of code with Firefox but not IE... someone pls help!
<a href="#" onclick="window.open('video.html', 'Concert 2003: I Remember...','width=378, height=250, left=500, top=160'); return false;">
The browser may be complaining about white space in the third parameter.
'width=378,height=250,left=500,top=160'
Try that.
Mick If i only use the first part, both can execute it correctly... e.g.
<a href="#" onclick="window.open('video.html');">
Thank you in advance...
Mick White wrote: terry wrote:
Hi,
I think i made a mistake somewhere.... I can execute the following line of code with Firefox but not IE... someone pls help!
<a href="#" onclick="window.open('video.html', 'Concert 2003: I Remember...','width=378, height=250, left=500, top=160'); return false;">
The browser may be complaining about white space in the third parameter.
'width=378,height=250,left=500,top=160'
Try that. Mick
Thank you for you reply...
but still doesn't work..
IE status still shows 'error on page' after i click on the link. And
nothing happens after that.. If i only use the first part, both can execute it correctly... e.g.
<a href="#" onclick="window.open('video.html');">
Thank you in advance...
terry wrote: Mick White wrote:
terry wrote:
<a href="#" onclick="window.open('video.html', 'Concert 2003: I Remember...','width=378, height=250, left=500, top=160'); return false;">
The browser may be complaining about white space in the third parameter.
'width=378,height=250,left=500,top=160'
Try that. Mick Thank you for you reply... but still doesn't work.. IE status still shows 'error on page' after i click on the link. And nothing happens after that..
The error is in "video.html" then.
Mick
terry said: Hi,
I think i made a mistake somewhere.... I can execute the following line of code with Firefox but not IE... someone pls help!
<a href="#" onclick="window.open('video.html', 'Concert 2003: I Remember...','width=378, height=250, left=500, top=160'); return false;">
If i only use the first part, both can execute it correctly... e.g.
<a href="#" onclick="window.open('video.html');">
You seem to have confused the window name attribute for
a window title. The second argument to window.open() may
not contain spaces or the ":" character. The value will
not be visible.
Mick White wrote: terry wrote:
Mick White wrote:
terry wrote:
<a href="#" onclick="window.open('video.html', 'Concert 2003: I Remember...','width=378, height=250, left=500, top=160'); return false;">
The browser may be complaining about white space in the third parameter.
'width=378,height=250,left=500,top=160'
Try that. Mick Thank you for you reply... but still doesn't work.. IE status still shows 'error on page' after i click on the link. And nothing happens after that..
The error is in "video.html" then. Mick
ha, I have figured it out with your help...
the 2nd parameter 'Concert 2003: I Remember...' cannot have any space in
between... so i changed it to 'concert' and it works magic :)
Thank you :D
terry wrote: I think i made a mistake somewhere.... I can execute the following line of code with Firefox but not IE... someone pls help!
<a href="#" onclick="window.open('video.html', 'Concert 2003: I Remember...','width=378, height=250, left=500, top=160'); return false;">
You should tell us what IE does, if it gives you an error message, what
that message is.
Without that I can only assume that the second argument is the problem,
it should not contain spaces so try
window.open('video.html', 'Concert2003', 'width...');
however you should better write the whole link as
<a href="video.html"
target="Concert2003"
onclick="window.open(this.href, this.target,
'width=378,height=250,...'); return false;">link text</a>
--
Martin Honnen http://JavaScript.FAQTs.com/
terry wrote: Mick White wrote:
terry wrote:
Hi,
I think i made a mistake somewhere.... I can execute the following line of code with Firefox but not IE... someone pls help!
<a href="#" onclick="window.open('video.html', 'Concert 2003: I Remember...','width=378, height=250, left=500, top=160'); return false;">
The browser may be complaining about white space in the third parameter.
'width=378,height=250,left=500,top=160'
Try that. Mick Thank you for you reply... but still doesn't work.. IE status still shows 'error on page' after i click on the link. And nothing happens after that..
Internet Explorer does not like whitespace in the window name (2nd parameter).
The second parameter of window.open() isn't the title of the new window, it is
the window's name. The specs may say otherwise, but I never use a window name
outside the set of characters including [a-zA-Z0-9_] and I never have any
problems.
Other browsers have problems with whitespace in the 3rd parameter, so remove
that as well.
Change your code to be:
<a href="video.html" target="Concert2003"
onclick="
window.open(
this.href,
this.target,
'width=378,height=250,left=500,top=160');
return false;
">
Note that I moved the URL into the HREF attribute and refer to it as this.href
in the window.open() call, and moved the window name to the TARGET attribute and
removed all whitespace and special characters, then referred to it in the
window.open() as this.target.
This has the added benefit of creating a working link for people who do not have
JavaScript enabled, and it makes it easier to maintain because you simply edit
the <A> and change the HREF attribute as you would any other link.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: tstephan |
last post by:
I am debugging a small app that normally runs in a few MB. When
debugging the code below, my app bloats to 1GB (and more if I let it).
Assembly ara = AppDomain.CurrentDomain.GetAssemblies();...
|
by: Dmitri Shvetsov |
last post by:
Hi All,
Did somebody see the situation when the VS refuses to debug the Web Service
at all? I can't catch why, the initially created Web Service can be debugged
very easy but after some changes...
|
by: Matt Theule |
last post by:
While stepping through an ASP.NET project, I found that data was being
inserted into my database even though I was not stepping through the
code that inserted the data.
I have a single page with...
|
by: R Millman |
last post by:
under ASP.NET, single stepping in debug mode appears not
to stop within event procedures. i.e. 1) Create web page
with submit button and event procedure for the click
event in the code behind...
|
by: Jason Hunt |
last post by:
I'm hoping someone can help me out with using the Visual Studio IDE for
debugging.
I'm working on a Windows Forms application (it's an MDI if it matters), and
I'm trying to fix a bug in my...
|
by: Joseph S. |
last post by:
hi all,
debugging PHP applications interactively is possible, easy and free. I
am talking about PHPEclipse and using it for debugging over several
scripts or debugging through a session. Since I...
|
by: Günter Prossliner |
last post by:
Hi everybody!
The same question I have asked about one week ago in the german asp.net
newsgroup, but no one was able to answer the question. Maybe someone is able
to in this group!
I...
|
by: rn5a |
last post by:
Can someone please suggest me a text editor especially for DEBUGGING
ASP scripts apart from Microsoft Visual Interdev?
I tried using Visual Interdev & created a project but Interdev
generates...
|
by: jwwicks |
last post by:
Introduction
This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
|
by: jwwicks |
last post by:
C/C++ Programs and Debugging in Linux
This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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: 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...
|
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,...
| |