The size of a new window

This is a discussion on "The size of a new window" within the Web Page Design section. This forum, and the thread "The size of a new window are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 18th, 2006, 08:31
New Member
Join Date: May 2006
Location: England
Age: 26
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
The size of a new window

Hello

I want make a link that opens a new window. The only thing is that I want the new window to be a certain size (smaller). How do I do this? Is it with HTML?

Thanks for your help!

-Allu
Reply With Quote

  #2 (permalink)  
Old May 18th, 2006, 10:03
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: The size of a new window

You do this through JavaScript but before you do it, consider...

Pop-up windows are generally considered a nuisance at best these days and many users have active pop-up blocking in place.

The general school of thought is that it is not your place to dictate the size of a window that opens. It's the end users choice.
Reply With Quote
  #3 (permalink)  
Old May 19th, 2006, 00:57
Junior Member
Join Date: May 2006
Location: Manchester. UK
Age: 17
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Re: The size of a new window

Heres the code:

HTML: Select all
<script type="text/javascript">
<!--
window.open('url.html', 'Window1', config='height=300,width=300');
//-->
</script>
Reply With Quote
Reply

Tags
size, window

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
Change open in new window to open in same window nsr500rossi JavaScript Forum 2 Jan 18th, 2008 14:13
[SOLVED] open new window from main window AdRock Other Programming Languages 1 Nov 1st, 2007 02:45
Window size when published euankennedyimorph Flash & Multimedia Forum 16 Jul 20th, 2007 19:59
pop-up window size irregularity josmets JavaScript Forum 2 Oct 17th, 2003 10:12


All times are GMT. The time now is 23:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43