Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 07-16-2004, 08:56 AM   #1 (permalink)
Psycho
 
FaderMonkey's Avatar
 
Location: Orlando, FL
[HTML] new window size

I know to have a link open in a new window you use target=blank, but is there HTML code to set the size of a new window? I want a link to open in a smaller new window.
FaderMonkey is offline  
Old 07-16-2004, 09:12 AM   #2 (permalink)
Psycho
 
noodles's Avatar
 
Location: sc
nope, going to have to use javascript
relavent link
__________________
This is what is hardest: to close the open hand because one loves.
Nietzsche
noodles is offline  
Old 07-16-2004, 09:23 AM   #3 (permalink)
Junkie
 
It's recommended that use both the HTML target attribute and an onclick handler to pop the JavaScript window, just on the off chance that the visitor has JavaScript disabled in their browser. In that case, the default HTML behavior will still work.

PHP Code:
<a href="some_page.html" target="popupWin" onclick="window.open('some_page.html','popupWin','width=300,height=400');">Open page in new window</a
SinisterMotives is offline  
Old 07-16-2004, 11:37 AM   #4 (permalink)
Psycho
 
FaderMonkey's Avatar
 
Location: Orlando, FL
Thanks guys!! You rock!
FaderMonkey is offline  
Old 07-16-2004, 01:00 PM   #5 (permalink)
Junkie
 
We swivel too!
SinisterMotives is offline  
Old 07-16-2004, 01:48 PM   #6 (permalink)
Psycho
 
FaderMonkey's Avatar
 
Location: Orlando, FL
I'm working on OS 10.2. I'm using this code:

PHP Code:
<a href="some_page.html" target="popupWin" onclick="window.open('some_page.html','popupWin','width=300,height=400');">Open page in new window</a
...which is working well when I use Firefox, but Safari 1.0 and IE 5.2 seem to ignore the window features. Is there anyway to do it so those browsers display it correctly as well?
FaderMonkey is offline  
Old 07-16-2004, 02:41 PM   #7 (permalink)
Junkie
 
You may have to explicitly declare all of the window features in IE 5.x:

PHP Code:
window.open('some_page.html','popupWin','width=400,height=300,scrollbars=0,menubar=0,directories=0,status=0,toolbar=0,resizable=0'); 
NOTE: You may want to set scrollbars to 1 unless you're absolutely sure the page content will never be taller than the window height.
SinisterMotives is offline  
 

Tags
html, size, window


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



All times are GMT -8. The time now is 03:36 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62