Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Applying size to brower?
Old 06-01-2007, 12:25 PM Applying size to brower?
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
When someone clicks on a hyper link for my website I want a new window to open up at a certain size. I know how to make a new window open but I don't know how to keep the window a certain size. Is this possible?

Thx for your help
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
 
Register now for full access!
Old 06-01-2007, 12:28 PM Re: Applying size to brower?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Of course it's possible - but you may run afoul of pop-up blockers by doing it. Why do you want to open new windows in people's faces anyway ? It's considered rude and annoying and usability studies have shown that it confuses people.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-01-2007, 12:32 PM Re: Applying size to brower?
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
I just wanted to have a email response page open up. Can you help?
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
Old 06-01-2007, 01:45 PM Re: Applying size to brower?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You can do it with javascript, just specify the size of the window you want to have.

Something like this:
Code:
javascript:;" onClick="Lvl_openWin('appendix/glossary.htm','glossary','770','580','10','30','0','scrollbars=yes,resizable=yes,width=770,height=580')"
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-01-2007, 03:47 PM Re: Applying size to brower?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Hmm, ladynred, this is't a regular javascript function.
It must be a part of a javascript framework or library you use.

The official function is window.open(url, window_name, parameters);
http://docs.sun.com/source/816-6408-...ow.htm#1202731

To open a window liek LadyNred said, the js code would be:
Code:
<a href="javascript:window.open('appendix/glossary.htm','popup_window','scrollbars=yes, resizable=yes, width=770, height=580, menubar=false, personalbar=false, toolbar=false');">open a popup</a> 
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 06-01-2007 at 03:50 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-01-2007, 04:14 PM Re: Applying size to brower?
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
Thanks guys! It works great.
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
Old 06-01-2007, 08:04 PM Re: Applying size to brower?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yes, I took that code from an old, old site I'd done and I was using a library for that function. However, the part the OP needed was the parameters for the window sizing, so I figured it would help anyway.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-05-2007, 06:27 AM Re: Applying size to brower?
VTWebProperties's Avatar
Skilled Talker

Latest Blog Post:
WEB 2.0 Apps For iPhone
Posts: 64
Name: Ed
Location: Vermont
Trades: 0
sbova, I would listen to what is being said about opening a new window. You may want to open in the same window or use AJAX and just open the contact form in a new div. I think you will find much better reaction to this than popping a new window.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
VTWebProperties is offline
Reply With Quote
View Public Profile Visit VTWebProperties's homepage!
 
Reply     « Reply to Applying size to brower?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26312 seconds with 12 queries