I'm trying to close an existing window...(not a pop-up window) with a confirm button.....
I have a function declared....
function close(){
var msgclose = "Are you sure you want to close?"
if(confirm(msgclose)) window.close();
}
then I call the funtion:
javascript:close();
In the button.
I get the confirm message but when I click ok the window doesn't close. It's a regular window not a pop-up window.
What am I doing wrong??
Thanks,
Janet24
I have a function declared....
function close(){
var msgclose = "Are you sure you want to close?"
if(confirm(msgclose)) window.close();
}
then I call the funtion:
javascript:close();
In the button.
I get the confirm message but when I click ok the window doesn't close. It's a regular window not a pop-up window.
What am I doing wrong??
Thanks,
Janet24