Hi All,
I did some research on the internet before posting the question on this forum. I didn't find useful link. Any help is appreciated.
javascript function handleOnClose is invoked on body onbeforeunload. In that I would like access value for the action parameter the url 'AControlServlet?Action=Links&link_id=71'. Can I access?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script>
function popUpWin(url, name, width, height, scroll) {
var properties = "scrollbars=" + scroll + ",width=" + width + ",height=" + height+",left="+((screen.width/2)-(width/2))+",top="+((screen.height/2)-(height/2));
window.open(url, name, properties);
}
function handleOnClose() {
alert("123");
// Here I want to access the value for Action Parameter of the URL
}
</script>
</HEAD>
<BODY onbeforeunload="handleOnClose()">
<a href="javascriptopUpWin('AControlServlet?Action=Links&link_id=71','spsa', 800, 600)">Testing</a>
</BODY>
</HTML>
I did some research on the internet before posting the question on this forum. I didn't find useful link. Any help is appreciated.
javascript function handleOnClose is invoked on body onbeforeunload. In that I would like access value for the action parameter the url 'AControlServlet?Action=Links&link_id=71'. Can I access?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script>
function popUpWin(url, name, width, height, scroll) {
var properties = "scrollbars=" + scroll + ",width=" + width + ",height=" + height+",left="+((screen.width/2)-(width/2))+",top="+((screen.height/2)-(height/2));
window.open(url, name, properties);
}
function handleOnClose() {
alert("123");
// Here I want to access the value for Action Parameter of the URL
}
</script>
</HEAD>
<BODY onbeforeunload="handleOnClose()">
<a href="javascriptopUpWin('AControlServlet?Action=Links&link_id=71','spsa', 800, 600)">Testing</a>
</BODY>
</HTML>