
March 6th, 2002, 08:38 PM
|
|
PHP/PERL/.NET Coder
|
|
Join Date: May 2001
Location: Daytona Beach, Florida
Posts: 36
Time spent in forums: 41 sec
Reputation Power: 13
|
|
|
java problem with window.open
here is my function:
Code:
<script Language="JavaScript">
function openWin(fileName, w, h) {
windowName = 'HalstonsJewelry-Gifts.com';
windowProps = 'height=' + h + ',width=' + w + ',toolbar=no,status=yes,scrollbars=yes,menubar=no,resizeable=yes';
win = window.open(fileName, windowName, windowProps);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}
</script>
here is what i'm calling it with:
<a href='javascript :' onClick='openWin("pop.php",250,300);' class='link_red'>
the error i consistently get is the following:
Line 45 error. (that's the line with the win = window.open(fileName,windowName, windowProps);
Invalid Argument?
I can't figure it out.
__________________
"Mankind cannot define memory, yet it defines mankind"
|