Click to See Complete Forum and Search --> : restrict HTMl window size ???


shanuragu
09-26-2003, 02:48 AM
Hi

When I click a hyper link it opens a regular html window say demo.html. I am resticting the window size as given below & calling the function in body tag.

function size()
{
window.resizeTo(418,390);
window.moveTo(180,120);
}

<body bgcolor="#FFFFFF" onloadad=" javascript:size();" onresize="javaScript:re_size();">
I want to remove scroll bar & tool bar etc using the same function. I just want to display a plane window with a border. How can I do that??

can I use window.Scrollbar=no; with in the size function??

shara

lillu
09-26-2003, 03:05 AM
If you'd like to get rid of the scrollbar, put style="overflow:hidden" in the body tag of the page that is opening inside the new window.

window.open("untitled.htm",'mypopup',
'fullscreen=yes,toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no');

I think toolbar=no will work fine.

shanuragu
09-26-2003, 04:06 AM
Due to many reasons I cannot give window size & other properties while opening the demo.html in the (ie, in window.open). I want to give all these conditions with in the new window itself (ie, with in the script). toolbar=no will not work here.

shara

requestcode
09-26-2003, 07:11 AM
Once the window is open I don't believe that you can modify those properties. You will have to do it with the window.open command.