Hotspur
02-27-2003, 02:31 AM
I understand how to create a pop up window using PopUp(PopUpUrl) but how can I activate the script via a link?
I need to know how to reference the popup window with a URL ...
HELP PLEASE!
Here is the pop up script I am using
<html>
<head>
<title>PopUpScript</title>
<script>
function PopUp(PopUpUrl){
var ScreenWidth=window.screen.width;
var ScreenHeight=window.screen.height;
var movefromedge=0;
placementx=movefromedge;
placementy=movefromedge;
WinPop=window.open(PopUpUrl,"","width=500,height=400,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=1, left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
}
</script>
</head>
<body>
<input type="button" name="popbutton" value="Open PopUp" onclick="PopUp('http://********/trainingmodules/basicelectricity/ElectricalTerms.htm')">
</body>
</html>
I need to know how to reference the popup window with a URL ...
HELP PLEASE!
Here is the pop up script I am using
<html>
<head>
<title>PopUpScript</title>
<script>
function PopUp(PopUpUrl){
var ScreenWidth=window.screen.width;
var ScreenHeight=window.screen.height;
var movefromedge=0;
placementx=movefromedge;
placementy=movefromedge;
WinPop=window.open(PopUpUrl,"","width=500,height=400,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=1, left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
}
</script>
</head>
<body>
<input type="button" name="popbutton" value="Open PopUp" onclick="PopUp('http://********/trainingmodules/basicelectricity/ElectricalTerms.htm')">
</body>
</html>