DD Popup Window Generator
http://www.dynamicdrive.com/dynamicindex8/popwin.htm
HelloViewing the above page in IE 6.0., it opens fine, and without any error. When launching the popup via its link, also, no problems. When I add the code to my file, and only that script, I get the following "error" - an "information bar" below the Address bar that states:
To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options…
If I do not deal with that information bar error, then the link opens in the same window, rather than in a popup. Due to its graphic design, it's imperative to crop the page by putting it into its own window. Can anyone help me understand why it works online, but not with the same code, in the same browser, from my file?
Here is my code for fun:
<html>
<head>
<title>Title Changed</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="myCSS.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript">
<!--
/****************************************************
Author: Eric King
Url: http://redrival.com/eak/index.shtml
This script is free to use as long as this info is left in
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
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=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
</head>
<BODY bgcolor="#D86600" leftmargin="0" topmargin="0" text=#440B01 link=#8E1600 vlink=#761200 alink=#8E1600>
<table width=100% height=100%><tr><td valign=center><center>
<a href="http://www.google.com" onclick="NewWindow(this.href,'Google','800','575','no','center');return false" onfocus="this.blur()">Google</a>
</center></td></tr></table>
</body>
</html>



Viewing the above page in IE 6.0., it opens fine, and without any error. When launching the popup via its link, also, no problems. When I add the code to my file, and only that script, I get the following "error" - an "information bar" below the Address bar that states:
Reply With Quote
I even tried saving, as such, before dealing with the info bar, and again, after dealing with it.. and neither did the trick. As for using Firefox.. I love it 

Bookmarks