473,230 Members | 1,786 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,230 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 8028
"" 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...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.