473,468 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Works in Firefox, not in IE (sorry if this has been on before!)

2 New Member
Hi

I have the below script to open a web page in a new window, it is working in Firefix, but not Internet Explorer. Could any one please shed any light on what is wrong with it?

Expand|Select|Wrap|Line Numbers
  1. To view JRA's privacy policy <a href='#' onClick='javascript:window.open("http://www.jraresearch.com/privatepolicystatementsgeneric.htm","privacy policy","width=900,height=600")'><B><U>please click here</B></U></a>
When this is clicked on in IE I get the message "Error on page" and it says that the error is "Invalid argument"

Any help greatly appreciated.

Mark
Jul 22 '09 #1

✓ answered by acoder

It's probably caused by the space in "privacy policy". Note that in an onclick, you don't need the "javascript:" protocol.

3 1178
acoder
16,027 Recognized Expert Moderator MVP
It's probably caused by the space in "privacy policy". Note that in an onclick, you don't need the "javascript:" protocol.
Jul 22 '09 #2
beanpole
2 New Member
That's worked - brilliant. Many many thanks for your help!

Mark
Jul 22 '09 #3
acoder
16,027 Recognized Expert Moderator MVP
You're welcome. Oh, and welcome to Bytes! :)
Jul 22 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Python Baby | last post by:
I'm about to try a little test project in Python, but want to make sure I'm on the right foot. Any advice appreciated before I start this. MOST important : I want to make sure I'm not just...
4
by: tuko | last post by:
Hello everyone. At the following snippet, at the commented line the pointer is valid? I mean the object bar is not constructed yet. So after the contruction of the bar object, the list...
1
by: sasha | last post by:
Sorry, this is a test
2
by: QDL | last post by:
Hello everyone, I have this very easy task to accomplish: block clicks on a whole page after posting to the server to prevent impatient users from clicking many times and causing problems to the...
0
by: tiggman | last post by:
Why preg_split works only if the char # before the delimiter is 21 or less? example php code: ============= $right = "{Hello Im very aaaaaa {cool|not cool}}"; print $right."<br>"; $pattern =...
16
by: London.Embankment | last post by:
If you go to this website: http://www.cwtgtg.co.uk/dwp/ It won't allow you to PASTE email addresses. Is there a way around this? (I am using a similar site but not this exact site) (I must...
2
by: digitalclout | last post by:
Just noticed on a new york times article, I could click any word that is NOT an hyperlink, and it automatically searches for that word on a different page. I'm looking through the source, and can't...
3
by: notnorwegian | last post by:
' '.join() anyone can tell me what im doing wrong?
2
by: parag_paul | last post by:
I understand that a const qualifier after the function declaration makes it a const function for the class. Like int func1 const ( double, long int ); Now what is the purpose of the...
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
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.