Welcome to WebmasterWorld Guest from 54.166.191.159

Forum Moderators: open

Message Too Old, No Replies

Window size from a href

without Javascript

     
4:17 pm on Nov 22, 2002 (gmt 0)

10+ Year Member



Is there anyway of opening a new window to a specific height and width from an a href without using javascript? Maybe in CSS? We're doing a html email for a client and we cant use any javascript.

Thanks in advance!

4:27 pm on Nov 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, I'm pretty sure what you are asking for is not possible without scripting.

Although you can control the desired size of the document using CSS but not actually the window it's being viewed in.

To control the windows you either need to coerce the user to resize the window or use scripting...

IMO either design for a fluid layout, or select a common window size and use a fixed sizing. In either case forcing me to resise my email window purely to view your newletter is a bad idea (again IMHO)...

- Tony

4:33 pm on Nov 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can only confirm what Dreamquick wrote: no size definition without javascript.
4:43 pm on Nov 22, 2002 (gmt 0)

10+ Year Member



Didn't think so but thanks anyway, I'll pass it on!

Cheers :)

4:54 pm on Nov 22, 2002 (gmt 0)

WebmasterWorld Senior Member macguru is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hi allybongo,

Maybe I got this wrong, (wouldn't be a first) but if you want to set a size to a new window opened from the HTML newsletter, you can use target = _blank in the href and onLoad=window.resizeTo(555,555) in the body tag of this new window.

Is it what you meant?

6:55 pm on Nov 22, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Macguru, that would work, but the onload event is javascript.
7:00 pm on Nov 22, 2002 (gmt 0)

WebmasterWorld Senior Member macguru is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Yes, I know that. But I thought the JS was verboten only in the newsletter.
7:15 pm on Nov 22, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Ah, that makes sense to me now. No js in the newsletter itself so it gets by the filters.
9:20 am on Nov 25, 2002 (gmt 0)

10+ Year Member



thanks for all the replies but unfortunately I can't touch the new window either! It links directly into a partner site of the clients. They have specified the resize in their site and obviously we are bypassing this so the result is a massive window.

Thanks for trying though! :)

Ally

9:25 am on Nov 25, 2002 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Just for historical footnote: didn't IE 3 report screen size and res via http headers?
9:58 am on Nov 25, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



This old W3C correspondence [lists.w3.org] indicates that color depth and screen resolution were included in the header.

What a shame these didn't get included in the standard. As the letter points out, the information could be very useful when a wider variety of clients begin to access websites.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month