Resize a browser window to content

D

David Logan

Hello,

I am trying to open a window with a graphic in it and have the window
be exactly the correct size of the image. Is there anyway to do this
that will work on any browser on any OS????

Thanks

David
 
K

kaeli

Hello,

I am trying to open a window with a graphic in it and have the window
be exactly the correct size of the image. Is there anyway to do this
that will work on any browser on any OS????

No.
Very little (comparitvely speaking) works on every browser and any OS.

Mozilla-based browsers, including NN6+ and Firefox, allow a user to turn
off the resizing of windows. Thank goodness. Because Mozilla users love
to use tabbed browsing, your resizing the window would resize all the
other tabs. Which sucks. A lot. I have resizing turned off for precisely
this reason.
Opera, which also uses tabbed browsing, might have a similar option.

You can try to open a new window and resize, but it's never guaranteed.
Heck, you can't guarantee your users even have script-enabled browsers
or that they have scripting enabled on their script-enabled browsers.
Yes, text-based browsers are still in use, though not overly common.
Disabled (often visually-impaired) users also have special browsers that
might not even have the option to resize.

Note that people who use tabbed browsers often have links set to open in
a new tab, not a new window. It is also pretty common for them to have
unrequested popups blocked. [1]

[1] discussions about this on various sites I visit have led me to these
conclusions. YMMV.

--
 
L

Lasse Reichstein Nielsen

kaeli said:
Opera, which also uses tabbed browsing, might have a similar option.

Actually, Opera doesn't use tabbed browsing, but rather MDI (Multiple
Document Interface), where each page is a separate window inside the
main application window. When all page windows are maximized, it
looks like tabbed browsing (and resizing fails, since the preferred
size doesn't matter while maximized).

However, Opera does have a similar option (Preferences> Multimedia >
Javascript options > Enable resizing of windows).

If you open a new window with window.open, and specifies sizes, the
window is opened as non-maximized.

/L 'who thinks MDI is superior to simple tabs'
 
D

DU

David said:
Hello,

I am trying to open a window with a graphic in it and have the window
be exactly the correct size of the image. Is there anyway to do this
that will work on any browser on any OS????

Thanks

David


Yes but it would not work on all browsers, all possible versions and on
all OSes. It would work on Mozilla-based browsers (rv > 1.3), NS 7.x,
Opera 7.x, MSIE 6.
Depending on the fact that the sub-window with a graphic in it is in
fact an .html file or it is a graphic file only, the answer would be
differential. Can you clarify this? Also, can you provide an url to show
what you have done so far?

DU
 
D

DU

kaeli said:
No.
Very little (comparitvely speaking) works on every browser and any OS.

Mozilla-based browsers, including NN6+ and Firefox, allow a user to turn
off the resizing of windows. Thank goodness. Because Mozilla users love
to use tabbed browsing, your resizing the window would resize all the
other tabs. Which sucks. A lot. I have resizing turned off for precisely
this reason.

I think the OP miswrote the subject line with "Resize" when his post
originally meant to size, to fit the window according to an image (html
or image?) size.

I agree with what you say overall.

DU
Opera, which also uses tabbed browsing, might have a similar option.

You can try to open a new window and resize, but it's never guaranteed.
Heck, you can't guarantee your users even have script-enabled browsers
or that they have scripting enabled on their script-enabled browsers.
Yes, text-based browsers are still in use, though not overly common.
Disabled (often visually-impaired) users also have special browsers that
might not even have the option to resize.

Note that people who use tabbed browsers often have links set to open in
a new tab, not a new window. It is also pretty common for them to have
unrequested popups blocked. [1]

[1] discussions about this on various sites I visit have led me to these
conclusions. YMMV.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top