...

View Full Version : Popup is launching in same window using IE (is working fine in Firefox)...



Errica
06-03-2006, 04:46 PM
Any ideas??


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Recommend Us</title>
<link rel="stylesheet" href="recommend.css" type="text/css">
<script language="javascript" type="text/javascript">
<!--
var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos){

if(pos=="random")
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

if(pos=="center")
{LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}

else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';

win=window.open(mypage,myname,settings);}
// -->
</script>
</head>

<body>

<table width="100%" height="100%">

<tr>
<td align="center" valign="middle"><a href="recommend.popup.php" onClick="NewWindow(this.href,'RecommendWindow','450','450','no','center');return false" onFocus="this.blur()">Recommend
Us</a></td>
</tr>
</table>

</body>
</html>

Arty Effem
06-03-2006, 06:52 PM
Any ideas??


<a href="recommend.popup.php" onClick="NewWindow(this.href,.......I cannot replicate the problem, but having JS disabled would.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum