By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,662 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,662 IT Pros & Developers. It's quick & easy.

Code to open new window doesn't work in IE

P: 4
Through reading forums such as this one I found this code to make a new window open. I thought this was working fine (in firefox) until I was notified that it does not work in IE. Any solutions? I am new to all this so take you time and talk clearly!!

[HTML]<a href="#" onClick="MyWindow=window.open('Play_Sand_Calculato r.html','MyWindow','toolbar=no,location=no,directo ries=no,status=no,menubar=no,scrollbars=yes,resiza ble=no,width=340,height=370'); return false;">Play Sand Quantity Calculator</a>
[/HTML]
The page it is on is here:
http://www.turfandstuff.com/product....rod=135&xSec=4

Thanks in advance for any help.

Cheers

Turfandstuff
Feb 12 '07 #1
Share this Question
Share on Google+
9 Replies

acoder
Expert Mod 15k+
P: 16,027
Welcome to The Scripts.

Do not use return false; If you want to prevent the link from activating, use
Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:void(0)"
Feb 12 '07 #2

dorinbogdan
Expert 100+
P: 839
I'm not sure what the problem is.
I clicked on "Play Sand Quantity Calculator"
and it opens a new window, as specified in parameters.
I'm using IExplorer 7.
Feb 12 '07 #3

P: 4
Thanks for that, please bear with me, but where in the code would that fit, is it in place of <a href="#"

Cheers

Angus


Welcome to The Scripts.

Do not use return false; If you want to prevent the link from activating, use
Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:void(0)"
Feb 12 '07 #4

P: 4
I have just made another check (on another computer) and you are right. It was a friend that reported it wasn't working, I don't know what version of IE he was on, but when I used my firefox "display as IE" tab it wasn't working either. Is that tab in firefox not a good way to check for browser compatibility?

Cheers

Angus



I'm not sure what the problem is.
I clicked on "Play Sand Quantity Calculator"
and it opens a new window, as specified in parameters.
I'm using IExplorer 7.
Feb 12 '07 #5

acoder
Expert Mod 15k+
P: 16,027
Thanks for that, please bear with me, but where in the code would that fit, is it in place of <a href="#"

Cheers

Angus
Yes, that's right.
Feb 12 '07 #6

acoder
Expert Mod 15k+
P: 16,027
I have just made another check (on another computer) and you are right. It was a friend that reported it wasn't working, I don't know what version of IE he was on, but when I used my firefox "display as IE" tab it wasn't working either. Is that tab in firefox not a good way to check for browser compatibility?

Cheers

Angus
It should be. There are some problems, but on the whole it seems to work fine.
Feb 12 '07 #7

acoder
Expert Mod 15k+
P: 16,027
The following code works fine in IE6:
[HTML]<a href="javascript:void(0);" onClick="MyWindow=window.open('Play_Sand_Calculato r.html','MyWindow','toolbar=no,location=no,directo ries=no,status=no,menubar=no,scrollbars=yes,resiza ble=no,width=340,height=370');">Play Sand Quantity Calculator</a>[/HTML]
Feb 12 '07 #8

P: 4
Thanks for that, working fine on everything except the firefox/IE tab, but I can live with that.

I am sure you'll hear from me again!!

Cheers

Angus




The following code works fine in IE6:
[HTML]<a href="javascript:void(0);" onClick="MyWindow=window.open('Play_Sand_Calculato r.html','MyWindow','toolbar=no,location=no,directo ries=no,status=no,menubar=no,scrollbars=yes,resiza ble=no,width=340,height=370');">Play Sand Quantity Calculator</a>[/HTML]
Feb 13 '07 #9

acoder
Expert Mod 15k+
P: 16,027
Thanks for that, working fine on everything except the firefox/IE tab, but I can live with that.

I am sure you'll hear from me again!!

Cheers

Angus
You're welcome. Yes, come again and maybe you can help others in their problems..
Feb 13 '07 #10

Post your reply

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