473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

window.open not working in IE

Hi all,

I am trying to build a pop-up into a Web page. The pop-up should open when
clicking a button. It works fine on Mozilla and Opera, but Internet Explorer
refuses to open the pop-up. How can I make it work?
The code is:

<input type="button" value="Help"
onClick="javascript:window.open('help.htm','Help on units
field','width=400,height=200,left=200,top=200,resi zable')" />

and the page is here:
http://www.amtrad.it/feewizardol.php (The "Help" buttons do not work in IE.)

Thanks for any hint!

Alessandra
Jul 20 '05 #1
2 58903
In article <be**********@lacerta.tiscalinet.it>, "Alessandra"
<al********@inwindxyz.it> writes:
Hi all,

I am trying to build a pop-up into a Web page. The pop-up should open when
clicking a button. It works fine on Mozilla and Opera, but Internet Explorer
refuses to open the pop-up. How can I make it work?
The code is:

<input type="button" value="Help"
onClick="javascript:window.open('help.htm','Hel p on units
field','width=400,height=200,left=200,top=200,res izable')" />

and the page is here:
http://www.amtrad.it/feewizardol.php (The "Help" buttons do not work in IE.)

Thanks for any hint!

Alessandra


remove the spaces from the window name, and remove the un-needed javascript:

<input type="button" value="Help"
onClick="window.open('help.htm','Help_on_units_fie ld','width=400,height=20
0,left=200,top=200,resizable')" />

Works in my IE6.
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.
Jul 20 '05 #2
HikksNotAtHome wrote:
remove the spaces from the window name, and remove the un-needed
javascript:

<input type="button" value="Help"
onClick="window.open('help.htm','Help_on_units_fie ld','width=400,height=20
0,left=200,top=200,resizable')" />

Works in my IE6.


Thanks Randy, it works now!

Alessandra
Jul 20 '05 #3

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

Similar topics

2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
2
by: Mountain Man | last post by:
Hi, I'm trying to use window.open from inside a user defined function, and it's not working. A code example is shown below. Thanks for any help you can give. Mountain Man ============ ...
2
by: carlor | last post by:
Hi there, I have a form that contains a link button. When the user clicks the link button I need to enable a couple of other buttons on the page and open a new browser window giving it focus...
4
by: Csaba Gabor | last post by:
Up until a few weeks ago, javascript code like window.open("http://mydomain.com", "windowName"); would always bring my new or reused window to the top, with focus. Lately, Firefox (Deer park...
2
by: DOM_scripter | last post by:
Hi, I want to set a picture on the fly. For this I have a html file with only an <img> tag - kind of a placholder. So I do myWindow=window.open("data/myFile.html"). Then I set the src attribute of...
5
by: JNariss | last post by:
Hello, Within a form I created I have placed links that users can click on to view information. I am trying to write a javascript code so it opens in a sized window but I can't seem to figure...
6
by: Jeff | last post by:
hey guys, this may not be the right place, but i wanted to give it a shot. i have an if statement, based on the data of a mssql db. if the if is .eof do nothing else
1
by: shotokan99 | last post by:
i have this function: function doit(){ if (dow.cpmake.selectedIndex==1 && dow.cpmodel.selectedIndex==0){ window.open('http://www.mysite.com/mycab.cab'); } } using ie this using will...
5
by: ting ting | last post by:
I am working on a ASP.net 2.0 version and I want to click a button to open a window. I was using window.open to write at vb side. Response.Write("<Script...
16
by: CreativeMind | last post by:
hi, i have a page calendar.aspx which returns selected date i.e window.returnValue=selectedDate; window.close(); it works fine with IE but not for Firefox. i tried...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.