473,378 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 8032
"" 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Eaton | last post by:
Hi I am developing my first asp appication (vbscript). I am storing cheques scans (in pdf format) in the file system along with the db on the server. The following code is working without...
2
by: monika | last post by:
Hi all... I am able to select a student's story and open it in a word doc. the teacher then corrects the story, highlight in colors the comments, strikethrough. In fact all the privileges I...
1
by: John | last post by:
HI, I was wondering if it is possible to target a named anchor in a frame when opening a new window with a javascript function? has anyone actualy been able to do this? Thanks in advance for...
3
by: Display Name | last post by:
When this form's being submitted, two windows are opening instead of only one here is the function I'm using: function subForm(){ //insert form validation here //if form is valid, open a...
8
by: ajay | last post by:
How to make a new page appear in tab instead of new window. I use Netscape 7+. Is there any provision to do in HTML language ? Ajay
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
6
by: Scott Lee | last post by:
I am displaying an ASP.Net generated form in a popup opened with window.showModalDialog. The form contains DropDownList controls. The first ddl is populated via databinding to a datatable, has...
4
by: EA | last post by:
The code below successfully open a blank new Window, the OpenWin function is held in a separate file and I use it successfully to open windows elsewhere on my site. However the window is...
26
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.