Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Javascript popup wont work in Explorer?!?


  • Please log in to reply

#1
JessicaM

JessicaM

    New Member

  • Member
  • Pip
  • 1 posts
Hello,

I am very new to Javascript, just learning. So I created a popup window with a sizable 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',  
'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
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP