opening new window: target vs jscript?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sjp@soca.com

    opening new window: target vs jscript?

    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@#9pacbel l.net (remove #9)

  • Stan Brown

    #2
    Re: opening new window: target vs jscript?

    "" wrote in comp.infosystem s.www.authoring.html:[color=blue]
    >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="blan k" command is quick, easy and seems like the best way to
    >go.[/color]

    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
    Dragon222 adalah situs slot gacor terbaru yang selalu memberikan banyak bonus menarik dan kemenangan JP untuk pemain setia selama bermain di link slot DRAGON222.

    Comment

    • Steve Pugh

      #3
      Re: opening new window: target vs jscript?

      sjp@soca.com wrote:
      [color=blue]
      >I need to open new windows only for the purpose of viewing linked
      >images, maybe a dozen or so throughout the site.[/color]

      Right mouse click > open in new window
      [color=blue]
      > Using the
      >Target="blan k" command is quick, easy and seems like the best way to
      >go.[/color]

      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?
      [color=blue]
      >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.[/color]

      If JavaScript is enabled on the user's browser.
      [color=blue]
      > 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.[/color]

      Huh?
      Why can't you just open the jpegs directly in the JavaScript windows?
      What's stopping you?
      [color=blue]
      >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?[/color]

      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 <steve@pugh.net > <http://steve.pugh.net/>

      Comment

      Working...