Works in Firefox, but not in IE?!?!

J

johnsonholding

Here is the code for a pop-up window that works in Firefox and not in
IE - I get a java error or something,

Here is the code :

</script>

<SCRIPT language="JavaScript" type="text/javascript">
<!-- ;
var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
newwindow.location.href = url;
newwindow.focus(); }
else {

newwindow=window.open(url,'whatsyourvice.htm','width=130,height=180,resizable=1');}

}

function tidy() {
if (newwindow.location && !newwindow.closed) {
newwindow.close(); }
}

// Based on JavaScript provided by Peter Curtis at www.pcurtis.com -->
</SCRIPT>

And then :
<div align="left"><a
href="javascript:popitup('whatsyourvice.htm')"><b><font face="Verdana,
Arial, Helvetica, sans-serif" size="1" color="#FFFF00">Click
here for <br>"What's Your
Vice?</font></b></a></div>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top