Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web form to open in certain size browser window

Status
Not open for further replies.

csdewan

MIS
Apr 11, 2005
16
GB
Hi all,

I have created a web form to get some user information. What I want to do is when the user opens the form on the website it opens in a new window and sets the size of the browser window. Has anyone got any ideas on the best way to do this?

Thanks
 
Ideally, don't do it. As a user, if a website opened a new window and resized it and I didn't want it to, I'd probably leave your site.

If you decide to still open it, use the window.open event in javascript.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Yes, the window.open();

I also hate this way, with fixed size windows. I find it really annoying. I wold prefere to load the page in a frame, or in a content place holder, rather than using this technique with javascrit.
 
Here is an example:
Code:
mylink.href = "javascript:DiaryNotes=window.open('../DiaryNotes.aspx','DiaryNotes',
'toolbar=0,location=0,directories=0,status=0,
menubar=0,scrollbars=0,resizable=1,
width=600,height=200');DiaryNotes.focus();"

As the people above mentioned the window.open is the only way to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top