mbock11
09-22-2004, 09:55 PM
I am trying to open a new window using Javascript from an onclick event. I have a radio button and I want a window to open as the user clicks on it. Here is my javascript code:
function WinCPReport()
{
mywindow = window.open("CPReport.asp","Your Selections","height=200,width=200,scroll=no,status=no,toolbar=no");
mywindow.moveTo(150,150);
}
I keep getting errors on the page that say "Invalid Argument". When I make the code look like this it will work:
function WinCPReport()
{
mywindow = window.open("CPReport.asp");
mywindow.moveTo(150,150);
}
The problem is that I need to name the window and I want all the other properties in there.
Can someone please help me out?
function WinCPReport()
{
mywindow = window.open("CPReport.asp","Your Selections","height=200,width=200,scroll=no,status=no,toolbar=no");
mywindow.moveTo(150,150);
}
I keep getting errors on the page that say "Invalid Argument". When I make the code look like this it will work:
function WinCPReport()
{
mywindow = window.open("CPReport.asp");
mywindow.moveTo(150,150);
}
The problem is that I need to name the window and I want all the other properties in there.
Can someone please help me out?