Hi guys
I wonder if you can help me with a problem I am having. I am a newbie when it comes to html and JavaScript so this mite not be a problem and just part JavaScript.
The problem is when I open a window using JavaScript code the title bar of the window has the URL then the TITLE of the page.
How do I get rid of the url from the title bar?
This is the code in the javascript.js
This is the code from the page
thanks
chris
I wonder if you can help me with a problem I am having. I am a newbie when it comes to html and JavaScript so this mite not be a problem and just part JavaScript.
The problem is when I open a window using JavaScript code the title bar of the window has the URL then the TITLE of the page.
How do I get rid of the url from the title bar?
This is the code in the javascript.js
var wOpen = false;
function OpenFormWindow(url,width,height,scroll,posn){
if(wOpen)
popup.close(); //ensure window opens the correct size
var topPosn=0;
var leftPosn=0;
if (posn == "c") {
topPosn=(screen.height - height)/2;
leftPosn=(screen.width - width)/2;
}
var windowprops = "location=0,scrollbars=" + scroll + ",menubar=0,toolbar=0," + "resizable=0,left=" + leftPosn + ",top=" + topPosn + ",width=" + width + ",height=" + height;
popup=window.open(url, "popup", windowprops);
popup.focus();
wOpen = true;
}
This is the code from the page
<input type="button" name="cmdCallMe" value="Call Me" class=BUTTON onClick="Javascript:OpenFormWindow('forms/callme.htm',420,500,0,'c')">
thanks
chris