Scrolling of the page not working in EPP 5.x
Issue
- If the html page contains the below mentioned script and the function of this script is being called in frameset tag with onbeforeunload attribute .The function is not fired
<html>
<head>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
</head>
<script type="text/javascript">
var winClosed=true;
var Er = 0;
var WindowArray = new Array();
var isLogin=false;
if (top != self){
top.document.location.href = document.location.href;
}
function closeChildren(){
for(a=(erWindowArray.length - 1);a>=0;a--){
erWindowArray[a].close();
}
}
function parentClosed(){
winClosed=false;
//isLogin=false;
try{
closeChildren();
}catch(e){}
}
function parentClosedWithX(){
if (winClosed){
try{
closeChildren();
}catch(e){}
}
//top.document.location.href = content.document.getElementById("logOutURL").href;
}
</script>
<frameset rows="*" cols="*" border="0" onbeforeunload="parentClosedWithX();">
<frame src="/portal/login.jsp" name="content"/>
</frameset>
</html>
Environment
- JBoss Enterprise Portal Platform (EPP)
- 5.1.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.