I couldn't get that to work,
I'm not good with java script, but it's a lot like perl syntax so I usually do ok, could you help me out a little more.
This is what I have so far.
print qq~
<html>
<head>
<SCRIPT language="JavaScript">
<!--
function winscroll(URL, width, height) {
var now = new Date();
if(!window.child.popup){
var remote = window.open(URL, "popup" + now.getTime(), "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,resizable=1,status=0,menubar=0,scrollbars=0"

;
}
// if(navigator.appVersion.indexOf("MSIE 3"

< 0)
// remote.focus();
}
defaultStatus = "";
// -->
</SCRIPT>
</head>
<meta HTTP-EQUIV="REFRESH" CONTENT="20">
~;
#####
#End Javascript: - perl code
#####
if ($res[4] eq "yes"

{
print qq~
<body onload="winscroll('
620, 360);">
</body>
</html>
~;
It's a mix of perl and java, the perl generates the java, and you can see that it refreshes every 20 seconds. That's why if $res[4] my variable in perl , is == to something, it will write the body tag. That's why it pops a new window up every 20 seconds. My popup name is "popup". Is there anything else you can think of?
Thanks A lot Mate,
Tony
Tony
tony@seeki.com
Experienced In: Perl, JavaScript, C++, PHP
Want More Experience In: Pascal, Python, PHP More C++