Hi,
I´m programming an web application and I´m using a little javascript.
I need to open a window (javascript:open ...) and I make that, but my problem is that I need this window have no option to close.
Can someone help me? Please, it´s very important for me.
Thank you.
-
HELP WITH JAVASCRIPT !! (2 messages)
- Posted by: Eva Ramonsal
- Posted on: March 30 2004 03:40 EST
Threaded Messages (2)
- A workaround? by Erik Gulliksen on March 30 2004 04:54 EST
- Thank you by Eva Ramonsal on March 30 2004 08:40 EST
-
A workaround?[ Go to top ]
- Posted by: Erik Gulliksen
- Posted on: March 30 2004 04:54 EST
- in response to Eva Ramonsal
Hi Eva!
I don't think it's a standard way of doing this. Though I have a workaround that might be useful..?
<script language="JavaScript">
<!--
// Set this to true when / if you'll let them close the window
// after some action is done...
var isDone = false;
function reOpen()
{
if(!isDone)
{
// Opens the same address. Perhaps you can use window.location
// insted of the hardcoded address
// titlebar=no I think might work on NS but not IE.
// Look at http://msdn.microsoft.com/library for more IE info
window.open('the_same_address.jsp', 'uncloseableWindow', 'titlebar=no');
}
}
function setDone( newValue )
{ isDoneFlag = newValue; }
//-->
</script>
</head>
<body onUnload="reOpen();">
Hope you can use some of it.
Good luck!
Best regards
Erik -
Thank you[ Go to top ]
- Posted by: Eva Ramonsal
- Posted on: March 30 2004 08:40 EST
- in response to Erik Gulliksen
Hi Erik,
thank you very much for your help.
I´m going to try to make what you say, perhaps I will have luck!!
Everyway that's a worthwile information, I really thank you.
Best regards,
Eva.