Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    252
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Popup is launching in same window using IE (is working fine in Firefox)...

    Any ideas??

    Code:
    <!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+',location=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>

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by Errica
    Any ideas??

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •