I want, it should close without any prompt
This is a discussion on Want to close my JSP page after some time automatically - J2EE ; I want to close my JSP page after some time automatically: I have one problem , below code works for me At time of closing IE, it is showing a confirmation message, I don't want it I want it should ...
I want to close my JSP page after some time automatically:
I have one problem , below code works for me
At time of closing IE, it is showing a confirmation message, I don't want it
I want it should close it with any prompt
I set security in IE LOW, tell me solution ..
--------------------Present Code ----------------------------------------
<HTML>
<script type="text/javascript">
<!--
function shutDown() {
self.close();
}
function init() {
var timer = setInterval(shutDown, 300);
}
onload = init;
//-->
</script>
<%@ page import=" eascomptest.*,java.util.*" %>
<%
String ls_return ;
n_eascomp lnv_eascomp =
n_eascompHelper.narrow(CompWrapper.getComponent("eascomptest/n_eascomp"));
ls_return = lnv_eascomp.of_retrieve();
out.println(" Return Value from test " + ls_return);
%>
</HTML>
-------------------- Code ----------------------------------------
I want, it should close without any prompt
Any reason why you just couldn't respond in the other thread instead of
starting a new thread?
Jenny wrote:
> I want, it should close without any prompt
>
>
>
>
AFAIK you can not override this. Its part of security to not allow
malicious programs to change the browser.
As I said before, you can close the window without a prompt if it is a
window you have opened from the original window. If you try and close
the original window in script you will be prompted.
Deal with it or find a different solution.
a.
Jenny wrote:
> I want, it should close without any prompt
>
>
>
>
Thanks a lot!
I am trying to do it.
"Adam Simmonds [TeamSybase]" <adam.simmonds@remove.exemail.com.au> wrote in
message news:46b13fbe@forums-1-dub...
> AFAIK you can not override this. Its part of security to not allow
> malicious programs to change the browser.
>
> As I said before, you can close the window without a prompt if it is a
> window you have opened from the original window. If you try and close the
> original window in script you will be prompted.
>
> Deal with it or find a different solution.
>
> a.
>
>
>
>
> Jenny wrote:
>> I want, it should close without any prompt
>>
>>
>>