Forum Moderators: open

Message Too Old, No Replies

New sized window without Javascript?

         

texasville

1:07 am on Mar 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have been looking for a code to use on a jpeg page. I have product pics with thumbnails and I want a larger pic to pop up without using javascript. I know I can use _blank but I want to keep the size of the new window to 640x480 and not a full sized window.
Is there such code or is it a pipedream? I am using static html pages with 4.01 transitional.

BlobFisk

12:47 pm on Mar 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi texasville,

Sounds like what you are looking for is the javascript window.open method. That allows you to define the dimensions of the window to open.

HTH

daosmith

3:39 pm on Mar 1, 2006 (gmt 0)

10+ Year Member



AFAIK, there is no way to specify window dimensions without using Javascript. Is there a particular reason that you don't want to use Javascript?

If you are worried about excluding those of your users who have Javascript disabled, I suggest you read "Links and Javascript Living Together in Harmony" (just plug that phrase into Google). Using the techniques in the article, you can have a correctly sized window for those of your users who have Javascript enabled, and a window of arbitrary size for those who don't.

BlobFisk

4:46 pm on Mar 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apologies - I read without as with..... Need to get glasses I think.

As daosmith said, you need to use a script of some sort to specify window dimensions.