...

View Full Version : Simple Popup wont work in Explorer?!?



JessicaM
03-15-2005, 05:29 AM
Hello,

I am very new to Javascript, just learning. So I created a popup window with a resizable window. It works in Safari and Netscape but not in Explorer. Any ideas why this may be happening and how to troubleshoot it?

Here is the code I am using:



<script LANGUAGE="JavaScript">
function popup(FILE, FEATURES) {
CONTENT = "<HTML><HEAD><TITLE>Horse Head</TITLE></HEAD>" + "<BODY><CENTER><FORM><INPUT TYPE='BUTTON' VALUE='Close'" + "onClick='window.close()'></FORM><P><IMG SRC='" + FILE + "' BORDER=0>" + "</CENTER>"+* "</BODY></HTML>";
pop = window.open("","",FEATURES);
pop.document.open();
pop.focus();
pop.document.write(CONTENT);
pop.document.close();

}
</SCRIPT>


* *<tr>
* ** ** ** ** ** ** ** *<td align="right" width="160"><img src="images/ipod1.gif" alt="" width="49" height="107" border="0"><br></td>
* ** ** ** ** ** ** ** *<td align="left" class="F2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LISTEN TO BEATHUSTLER RADIO ON YOUR iPOD!<br>
* ** ** ** ** ** ** ** *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* ** ** ** ** ** ** ** *<A HREF="javascript:void(0)" onClick="window.open('http://www.beathustler.com/podcast.html', 'pleasework',*
& #39;width=640,height=480,toolbar=1,scrollbars=1,screenX=100,screenY=100,left=100
,top=100')">CLICK HERE TO LEARN HOW</a></td>
* ** ** ** ** ** ** *</tr>



And here is the page where it appears:

http://beathustler.com/radiofix2.html

Thanks very much for any help you can offer!

-Jessica

glenngv
03-15-2005, 05:53 AM
Add resizable=1 in the window features.

JessicaM
03-15-2005, 06:05 AM
Sorry if I didnt make myself clear. The javascript popup is not working at all. It is not that is doesnt resize the window. The issue is that no window pops up in the first place (only in Explorer). It works fine in Safari and Netscape. Any ideas why this may be happening?

-Jessica

glenngv
03-15-2005, 06:47 AM
Sorry if I didnt make myself clear. The javascript popup is not working at all. It is not that is doesnt resize the window. The issue is that no window pops up in the first place (only in Explorer). It works fine in Safari and Netscape. Any ideas why this may be happening?

-Jessica
Are you using IE 6 XP SP2? Probably it is being blocked by the popup blocker. It works for me in IE 6 in Win2K.

JessicaM
03-15-2005, 06:58 AM
I am using IE 5.2 for the Mac.

I looked through the preferences but dont see where you unblock the popup blocker option....such a basic point I know but I cant find the setting anywhere...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum