468,161 Members | 1,952 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,161 developers. It's quick & easy.

opening new window: target vs jscript?

sjp
I need to open new windows only for the purpose of viewing linked
images, maybe a dozen or so throughout the site. Using the
Target="blank" command is quick, easy and seems like the best way to
go. But if I use the javascript "open window" function, I know that I
can size the new window to the exact size of the jpg image. But then I
need to actually create pages for these windows and save them to my
folder. With the target command, I just access the jpgs without
creating a bunch of new html pages.

I like the method of using target better than jscript; its cleaner and
more straightforward. Just wondering if there might be some way to
control the size of the window opened via the Target command?
thanks

steve
lex125@#9pacbell.net (remove #9)

Jul 23 '05 #1
2 7837
"" wrote in comp.infosystems.www.authoring.html:
I need to open new windows only for the purpose of viewing linked
images, maybe a dozen or so throughout the site. Using the
Target="blank" command is quick, easy and seems like the best way to
go.


You're trying to do a bad thing, and you're trying to do it the
wrong way.

Opening extra windows is the user's business, not the author's.

Fortunately what you have above won't open a fresh window each
time but will open one window and then put all the other images
in it. That's not as good as letting the user open her own
windows, but it's not as bad as opening a fresh window each time.

--

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
Jul 23 '05 #2
sj*@soca.com wrote:
I need to open new windows only for the purpose of viewing linked
images, maybe a dozen or so throughout the site.
Right mouse click > open in new window
Using the
Target="blank" command is quick, easy and seems like the best way to
go.
Do you mean target="blank"? That means open in the widow or frame
called blank and if it doesn't exist create it. Or do you mean
target="_blank"? Which means open in a new unnamed window? i.e. do you
want to reuse the window if it's already open?
But if I use the javascript "open window" function, I know that I
can size the new window to the exact size of the jpg image.
If JavaScript is enabled on the user's browser.
But then I
need to actually create pages for these windows and save them to my
folder. With the target command, I just access the jpgs without
creating a bunch of new html pages.
Huh?
Why can't you just open the jpegs directly in the JavaScript windows?
What's stopping you?
I like the method of using target better than jscript; its cleaner and
more straightforward. Just wondering if there might be some way to
control the size of the window opened via the Target command?


No.

But look at it like this. If you use an ordinary link then the user
has the choice of opening it in the current window or in a new
window/tab or even in a background tab to come back to later (if you
have an image gallery then they might open all the links in background
tabs at once and then browser through all the new tabs once all the
images hav downloaded).

If you use target or JavaScript then how does the user choose to open
the link in the current window? Why is taking choice about they use
their own browser away from the user a good thing?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Paul Eaton | last post: by
1 post views Thread by John | last post: by
3 posts views Thread by Display Name | last post: by
14 posts views Thread by D. Alvarado | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by kamranasdasdas | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.