Hi All
Could anybuddy tell me how to rename/hide the title in the popup window. I found the below code from google. this code is working fine. Actualy I don't want to show the url to the user. Below code helps to hide the address bar. But still user can see the url in title bar. If I add the titlebar=no in the var feature then also it is showing the url in titlebar.
Kindly help me.
function loadMainWindow()
{
var win = window.self;
win.opener = window.self;
var newloc = '<%= url %>';
var ih = (window.window.screen.availHeight - 60) - 100;
var iw = (window.window.screen.availWidth - 10) - 100;
var it = ((window.window.screen.availHeight - 60) - ih) / 2;
var il = ((window.window.screen.availWidth - 10) - iw) / 2;
var features =
"directories=no,menubar=no,location=no,toolbar=no,status=no,scrollbars=yes,resizable=yes"
+ ",width=" + iw + ",height=" + ih + ",top=" + it + ",left=" + il + "";
v1 = new Date();
v2 = Date.parse(v1);
v3 = "pg" + v2;
var oNewWindow = window.open(newloc, v3, features);
oNewWindow.focus();
}
function popUpDocuument()
{
try
{
loadMainWindow();
}
catch(e)
{
popUpMessage.style.display = 'block';
}
}
Regards
Nishant