i have the following code inside my JSP:
<script language=”Javascript”>
openPopup(‘../setup/prepareReport.do?actionKey=fromLink&objType=<%=objType %>&rfId=<%=rfId %>&fileName=<%=fileName %>&process=PRINT’,'<%=rfName%>’,’scrollbars=yes,width=400,height=350′);
</script>
the above code will call this method:
function openPopup(theURL,winName,features) {
features = features+”, resizable = yes”;
popupWindow = window.open(theURL,winName,features);
popupWindow.document.title=winName;
}
what i’m trying to do is to set the browser title of the popup screen. it was working fine with mozilla firefox 1.0, but when i try to open the popup using IE 6.0, it gives me an “Invalid argument” error. The error seems to come from >> popupWindow.document.title=winName;
izzit due to browser compatibality problem? coz when i open the popup using mozilla firefox 5.0 on linux system, it is even showing the correct title on the popup.
could anybody give me a hint on how to solve this?
thx in advance !!