how to open page in new window using html

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vishal

    how to open page in new window using html

    hi

    i am creating one site and i am not allowed to use client side
    scripting in site and i have one link in my one page. when user clicks
    on this link the target page must be opened in another window. is it
    possible to do it without using javascript,vbsc ript???

    thxs for your help in advance.

  • Jan Pieter Kunst

    #2
    Re: how to open page in new window using html

    vishal wrote:[color=blue]
    > hi
    >
    > i am creating one site and i am not allowed to use client side
    > scripting in site and i have one link in my one page. when user clicks
    > on this link the target page must be opened in another window. is it
    > possible to do it without using javascript,vbsc ript???
    >
    > thxs for your help in advance.
    >[/color]

    <a href="page.html " target="_blank" >page</a>

    JP

    --
    Sorry, <devnull@cauce. org> is a spam trap.
    Real e-mail address unavailable. 5000+ spams per month.

    Comment

    • vishal

      #3
      Re: how to open page in new window using html

      thxs

      Comment

      • Sean

        #4
        Re: how to open page in new window using html

        On 28 Mar 2005 00:19:39 -0800, "vishal" <vishal_panjabi @yahoo.co.in>
        reverently intoned upon the aether:
        [color=blue]
        > hi
        >
        > i am creating one site and i am not allowed to use client side
        > scripting in site and i have one link in my one page. when user clicks
        > on this link the target page must be opened in another window. is it
        > possible to do it without using javascript,vbsc ript???
        >
        > thxs for your help in advance.[/color]


        <a href="clarity.p hp" target="new">Cl arity</a>

        Different target, same concept.

        enjoy,

        Sean


        "In the End, we will remember not the words of our enemies,
        but the silence of our friends."

        - Martin Luther King Jr. (1929-1968)

        Photo Archive @ http://www.tearnet.com/Sean
        Last Updated 29 Sept. 2004

        Comment

        • John Dunlop

          #5
          Re: how to open page in new window using html

          vishal wrote:
          [color=blue]
          > i am creating one site and i am not allowed to use client side
          > scripting in site[/color]

          Who's stopping you?
          [color=blue]
          > and i have one link in my one page. when user clicks on this
          > link the target page must be opened in another window. is it
          > possible to do it without using javascript,vbsc ript???[/color]

          No, and it's not possible with those languages either. What happens
          with your page once the reader has downloaded it is pretty much his
          business.

          Comment

          • Micha³ Wo¼niak

            #6
            Re: how to open page in new window using html

            One quick glance of an experienced eye allowed to understand the blurred
            and almost unreadable John Dunlop's handwriting:
            [color=blue]
            > vishal wrote:
            >[color=green]
            >> i am creating one site and i am not allowed to use client side
            >> scripting in site[/color]
            >
            > Who's stopping you?[/color]

            I suppose there might be some compatibility issues for example. I had
            such a project once.
            [color=blue][color=green]
            >> and i have one link in my one page. when user clicks on this
            >> link the target page must be opened in another window. is it
            >> possible to do it without using javascript,vbsc ript???[/color]
            >
            > No, and it's not possible with those languages either. What happens
            > with your page once the reader has downloaded it is pretty much his
            > business.[/color]

            ?? Am I missing something here, or have you just ignored the
            window.open() function of JavaScript?

            Besides, pure HTML should be enough:
            <A href='http://some.page' target='_new'>L ink TExt</A> will open the
            http://some.page in a new window when the user click this link.

            Cheers
            Mike

            Comment

            • John Dunlop

              #7
              Re: how to open page in new window using html

              Michal Wozniak wrote:

              [about opening new windows]
              [color=blue]
              > ?? Am I missing something here, or have you just ignored the
              > window.open() function of JavaScript?[/color]

              Unless you're on an intranet where you can control these things,
              there's no knowing that javascipt's available or that window.open does
              anything if javascript is available -- even on windowing systems.


              [color=blue]
              > Besides, pure HTML should be enough:
              > <A href='http://some.page' target='_new'>L ink TExt</A>[/color]

              '_new' violates the spec, as only four target names begin with
              underscores: namely, '_blank', '_self', '_parent', and '_top'. The
              horse's mouth:


              [color=blue]
              > will open the http://some.page in a new window when the user click
              > this link.[/color]

              Sorry, but I can't agree with your 'will', because sometimes it won't;
              nor can I agree with the spec, which neatly hedges the issue by saying
              'should'. How I interact with a page is nobody's business but mine.

              Comment

              • Micha³ Wo¼niak

                #8
                Re: how to open page in new window using html

                One quick glance of an experienced eye allowed to understand the blurred
                and almost unreadable John Dunlop's handwriting:
                [color=blue]
                > Michal Wozniak wrote:
                >
                > [about opening new windows]
                >[color=green]
                >> ?? Am I missing something here, or have you just ignored the
                >> window.open() function of JavaScript?[/color]
                >
                > Unless you're on an intranet where you can control these things,
                > there's no knowing that javascipt's available or that window.open does
                > anything if javascript is available -- even on windowing systems.
                >
                > http://www.infimum.dk/HTML/JSwindows.html#ref_3_5
                >[color=green]
                >> Besides, pure HTML should be enough:
                >> <A href='http://some.page' target='_new'>L ink TExt</A>[/color]
                >
                > '_new' violates the spec, as only four target names begin with
                > underscores: namely, '_blank', '_self', '_parent', and '_top'. The
                > horse's mouth:
                >
                > http://www.w3.org/TR/html401/types.h...e-frame-target[/color]

                Right, my mistake.
                [color=blue][color=green]
                >> will open the http://some.page in a new window when the user click
                >> this link.[/color]
                >
                > Sorry, but I can't agree with your 'will', because sometimes it won't;
                > nor can I agree with the spec, which neatly hedges the issue by saying
                > 'should'. How I interact with a page is nobody's business but mine.[/color]

                Well, I agree, but I don't think the original poster wants to write a
                page that will work on Lynx, TV-Viewers and so on. Of course, JavaScript
                works only when it is enabled, but you have written "that it [namely:
                opening new windows] is not possible in those languages". It is POSSIBLE
                but there is no way of knowing if it is available/enabled on the user's
                side. And that's all I wanted to say with "window.ope n" here.

                Now, to the opening of new windows: come on, you could say that it is
                solely your (user's) business how they want the page to be coloured, but
                the developers have to write pages that do the job - on most of the
                user's setups. You can tell your browser to display both black and white
                as green, but you have to know that this will render some pages
                unviewable for you.
                Same thing with windows - you have the right to disable whatever the
                settings you like, but that narrows the amount of pages you could view
                without problems.
                I do not like pop-ups. I do not use them. But the original poster was
                asking HOW to do it. And you answered it is not possible - which is
                obviously not true.
                And I would like to remind you that 99% of pop-ups are written in
                JavaScript. And the OP wanted to do this without it - which suggests he
                had no *evil* things in mind. :) I have nothing against opening a new
                window upon CLICKING a link, it can even help sometimes, besides you can
                always use tabs. A new window or tab opened this way is NOT a pop-up.

                Man, getting OT here. :)

                Cheers
                Mike

                Comment

                • John Dunlop

                  #9
                  Re: how to open page in new window using html

                  Michal Wozniak wrote:
                  [color=blue]
                  > Of course, JavaScript works only when it is enabled, but you
                  > have written "that it [namely: opening new windows] is not
                  > possible in those languages".[/color]

                  Maybe I wasn't clear. When I said it wasn't possible, I wasn't
                  referring to the opening of new windows generally, but specifically the
                  _forced_ opening of new windows. vishal said the page _must_ be opened
                  in a new window, from which I inferred that he, or more likely those
                  whose rules he is working under, wouldn't be happy if somebody followed
                  the link in the same window.
                  [color=blue]
                  > It is POSSIBLE[/color]

                  No disagreement there from me.

                  Comment

                  Working...