Resizing web form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to resize my web form. I want that whenever the form loads on client's
machine it opens with a defualt size specified by me. Also it should not be
possible for the user to change the dimensions of the form after it is loaded
i.e the size of the form shall remain fixed. Pls help out.

Any help is appreciated.
 
hi,
u can call the form form javascript as follows

function openWindow()
{
hgt = 600;
wdth= 760;
tp= (screen.height/2)-(theHeight/2);
lt= (screen.width/2)-(theWidth/2);
ftr=
'height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scr
ollbars=yes";
open ('page.aspx?','',features);
}

cheers
jeebu
 
Thanx for the help Jeebu.

I am sorry to ask this but I am new to Javascript. If you could please
explain how to call this function and where shall i put this in my code?

Jeebu said:
hi,
u can call the form form javascript as follows

function openWindow()
{
hgt = 600;
wdth= 760;
tp= (screen.height/2)-(theHeight/2);
lt= (screen.width/2)-(theWidth/2);
ftr=
'height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scr
ollbars=yes";
open ('page.aspx?','',features);
}

cheers
jeebu
 
Back
Top