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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top