Click to See Complete Forum and Search --> : Titlebar


dcjones
12-17-2002, 01:50 PM
Hi all.

Help !

I have the following script.

myWindow1 = null;
function window_open1()
{
var urlstring = "m5.htm";
myWindow1 = window.open(urlstring, "M5",
"height=300,width=550,left=180,top=290,scrollbars, titlebar=No");
window.setTimeout("myWindow1.focus()",1000);
return true;
}

This works OK but is there a way to stop the Titlebar at the top of the window, i.e just to have a window with no trimmings.

I run this in IE6.

Can anyone suggest


Thanks


Dereck

pyro
12-17-2002, 02:28 PM
Not sure exactly what you are looking for, but I think this is it

Set the following to yes or no like you did for titlebar. By the way, I don't think that titlebar does anything. Maybe I'm wrong, though...

toolbar=no
location=no
directories=no
menubar=no

Charles
12-17-2002, 02:39 PM
About setting the window features:Many of these features (as noted above) can either be yes or no. For these features, you can use 1 instead of yes and 0 instead of no. If you want to turn a feature on, you can also simply list the feature name in the windowFeatures string. If windowName does not specify an existing window and you do not supply the windowFeatures parameter, all of the features which have a yes/no choice are yes by default. However, if you do supply the windowFeatures parameter, then the titlebar and hotkeys are still yes by default, but the other features which have a yes/no choice are no by default.See http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202731[/url].

dcjones
12-17-2002, 03:00 PM
Hi all,

Thanks for your replies.

I now have the following

myWindow1 = null;
function window_open1()
{
var urlstring = "m5.htm";
myWindow1 = window.open(urlstring, "M5",
"height=300,width=550,left=180,top=290,scrollbars, toolbar=no, location=no, directories=no, menubar=no,titlebar=no");
window.setTimeout("myWindow1.focus()",1000);
return true;
}

BUT, I still have a titlebar at the top of the window, any ideas please.


Thanks

Dereck

Charles
12-17-2002, 03:03 PM
Its existence is a security feature. You'll have to "sign" your script and ask the user's permission to get it to work.

swon
12-17-2002, 03:09 PM
In my Knowledge, you will ever have an titlebar!

dcjones
12-17-2002, 03:25 PM
Hi Charles,

Thanks for your replies,

Can you expand on this "sign the script and get permission"

Sorry to be a pain.

Dereck

Charles
12-17-2002, 03:32 PM
See http://developer.netscape.com/docs/manuals/js/client/jsguide/sec.htm#1015075 and kleep in mind that this only works in Netscape and perhaps Mozilla.

pyro
12-17-2002, 05:50 PM
See if this is what you are looking for. http://www.dynamicdrive.com/dynamicindex8/chromeless.htm

dcjones
12-18-2002, 04:18 AM
Hi all and many thanks for all your help with this.

Pyro. What you have shown me is very close to what I want

Because your suggested script does not work in XP I can not use it.

I am happy with the default window in my script apart from the TOP titlebar. where it shows the name of the window and "Microsoft Internet Explorer". Is there a way of getting rid of the "Microsoft Internet Explorer".


Many thanks for all your help

Dereck

dcjones
12-18-2002, 07:24 AM
Hi all,

Anyone got any ore ideas on how to get rid of the Titlebar


Many thanks

Dereck

Charles
12-18-2002, 09:42 AM
Originally posted by dcjones
Hi all,

Anyone got any ore ideas on how to get rid of the Titlebar


Many thanks

Dereck Use White Out. There's a limit to what you are allowed to do on other peoples' screens.

pyro
12-18-2002, 10:10 AM
Try this. http://dynamicdrive.com/dynamicindex8/dhtmlwindow.htm That seemed to work fine for me in IE6 and NN7 on Windows XP.

dcjones
12-18-2002, 03:07 PM
Hi all.

Thanks for all your suggestions and help. I have solved my problem by using the following script.

<head>

function openChromeslessWindow(openUrl, winName, wWidth, wHeight, wPosx, wPosy, wTIT,
windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel,
bCenter, sFontFamily, sFontSize, sFontColor){

openchromeless(openUrl,winName, wWidth, wHeight, wPosx, wPosy, wTIT, wTIT ,
windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel,
bCenter, sFontFamily, sFontSize, sFontColor);
}

</HEAD>

<BODY>

<area shape="poly" coords="2,2,58,4,64,42,34,60,3,59" href="#" onClick="openChromeslessWindow('SouthEast.htm','win1',400,300,160,210,'SouthEastern Shires', '#000000', '#000000', '#990000', '#808040' ,false,'Georgia, Times New Roman, Times, serif', '2','#FFFFFF')">

</BODY>

with the include file attached



This method gives me complete control of my popup window.

It work OK in IE5 and up but produces a normal window in Netscape. Oh well you can't win them all.


Many thanks


Dereck