I have 2 pages let say 1.html and 2.html.
From 1.html button to 2.html.
I want after 2.html is loaded to close 1.html
without menu OK-Cancel
what I did:
1.html code:
function Open2html(){
1html=window.open("2.html","DoYouWantSize=NotReall y","AnythingElse=no")
}
<body>
<form>
<input value="OpenThatPage" onclick="Open2html()">
</form>
etc...
2.html -code:
function close1.html(){
if (opener && !opener.closed){
opener.close()
}
}
</script>
<body onload="close1html()">
Some text gose hereeeee
--------
OK everithing ok But IS coming that menu
Are Sure You Want to Close 1.html Window
OOOOO yeah why I am typing this code than?
Any Option to not show this OK-CANCEL menu?
Thank you