Elo ppl, i have a problem with my site.
iam using a javascript to open a new window.
But it seems explorer isnt ok with that. wont open.
---------------------
this is the script iam using. ( i know the spelling on tatoo).
<script type="text/javascript">
function myPopup() {
window.open('tatoo1.php','More info','menubar=no,width=580,height=430,toolbar=no,location=no,titlebar=no')
}
<div id="sorcinfo2">
<form>
<input type="button" onClick="myPopup()" value="Bigger picture">
</form>
</div>
what should i do to be able to open it in explorer also ?
iam looking around the net also...
/tomtefan
explorer + java ?
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: explorer + java ?
Internet Explorer is very picky about allowing pop-windows. You cannot open them as part of the flow of code in a script. It can only open them in response to a user action (meaning: in an event handler), and even then it will likely prompt the user. Less experienced users may not understand the dialog box request, and at best they click not to open it, and at worse they get scared and leave your site, never to come back. In fact, various browsers can be so picky about opening pop-up windows that many web developers have turned to actually faking pop-up windows in Javascript instead of trying to open real pop-ups, or they write entire libraries to support safely opening real pop-ups. Here is a nice tutorial that explains how to use some of these options in the context of jQuery, the most widely-adopted Javascript library in the world.
The indelible lord of tl;dr
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: explorer + java ?
yep, popups can be a pain to work with. I often use alerts.
alert("hey does this work");
alert("hey does this work");