javascipt to bust out of iframe

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

    javascipt to bust out of iframe

    Hi all,

    I want to display advertising in iframe, but bust out of iframe if someone
    clicks on any of the links in there. Can u please help. I googled for it,
    but I am not sure about the solution that works, and I am not a js expert.

    Thanks,

    steve


  • Stevo

    #2
    Re: javascipt to bust out of iframe

    noob wrote:
    I want to display advertising in iframe, but bust out of iframe if someone
    clicks on any of the links in there. Can u please help. I googled for it,
    but I am not sure about the solution that works, and I am not a js expert.
    Just add target="_blank" to the links. That will make them open in a new
    window.

    Comment

    • rfr

      #3
      Re: javascipt to bust out of iframe

      Unfortunatley, I don't think that use of "target" will pass the WC3
      validator. That menas you will not be able to use validation to check your
      code to be sure it is up to standards and hopefully more cross-bowser.

      I, also, have been wondering what to use now to do this sort of thing that
      "target" is off the acceptible use list.

      "Stevo" <no@mail.invali dwrote in message
      news:g27v6e$jq7 $03$1@news.t-online.com...
      noob wrote:
      >I want to display advertising in iframe, but bust out of iframe if
      >someone clicks on any of the links in there. Can u please help. I
      >googled for it, but I am not sure about the solution that works, and I am
      >not a js expert.
      >
      Just add target="_blank" to the links. That will make them open in a new
      window.

      Comment

      • Dan Rumney

        #4
        Re: javascipt to bust out of iframe

        rfr wrote:
        Unfortunatley, I don't think that use of "target" will pass the WC3
        validator. That menas you will not be able to use validation to check your
        code to be sure it is up to standards and hopefully more cross-bowser.
        >
        I, also, have been wondering what to use now to do this sort of thing that
        "target" is off the acceptible use list.
        [snip]

        Why would it fail to pass the validator? It's defined in the DTD


        (I know that's a link to Coords, but it's just below that)

        See also


        Comment

        • Joost Diepenmaat

          #5
          Re: javascipt to bust out of iframe

          Dan Rumney <danrumney@warp mail.netwrites:
          rfr wrote:
          >Unfortunatle y, I don't think that use of "target" will pass the WC3
          >validator. That menas you will not be able to use validation to
          >check your code to be sure it is up to standards and hopefully more
          >cross-bowser.
          >>
          >I, also, have been wondering what to use now to do this sort of
          >thing that "target" is off the acceptible use list.
          >
          [snip]
          >
          Why would it fail to pass the validator? It's defined in the DTD
          It is defined in the transitional DTD but not in the strict one.

          --
          Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/

          Comment

          • Dr J R Stockton

            #6
            Re: javascipt to bust out of iframe

            In comp.lang.javas cript message <Sa2dnX8T_fKOF9 TVnZ2dnUVZ_qqgn Z2d@prairi
            ewave.com>, Fri, 6 Jun 2008 14:03:45, rfr <rfrohrer@iw.ne tposted:
            >Unfortunatle y, I don't think that use of "target" will pass the WC3
            >validator. That menas you will not be able to use validation to check your
            >code to be sure it is up to standards and hopefully more cross-bowser.
            A single expected failure does disallow use of the "valid" logo; but it
            does not prevent the rest of the page being checked. To make sure, do
            an occasional test with target not used.

            If JavaScript is available, I suppose one could add the target attribute
            by script, or write the whole link by script.

            --
            (c) John Stockton, nr London UK. ?@merlyn.demon. co.uk BP7, Delphi 3 & 2006.
            <URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
            <URL:http://www.bancoems.co m/CompLangPascalD elphiMisc-MiniFAQ.htmclpd mFAQ;
            Via <URL:http://support.codegea r.com/newsgroups/>: news:borland.* Guidelines

            Comment

            • VK

              #7
              Re: javascipt to bust out of iframe

              On Jun 8, 12:07 am, Dr J R Stockton <j...@merlyn.de mon.co.ukwrote:
              In comp.lang.javas cript message <Sa2dnX8T_fKOF9 TVnZ2dnUVZ_qqgn Z2d@prairi
              ewave.com>, Fri, 6 Jun 2008 14:03:45, rfr <rfroh...@iw.ne tposted:
              >
              Unfortunatley, I don't think that use of "target" will pass the WC3
              validator. That menas you will not be able to use validation to check your
              code to be sure it is up to standards and hopefully more cross-bowser.
              >
              A single expected failure does disallow use of the "valid" logo; but it
              does not prevent the rest of the page being checked. To make sure, do
              an occasional test with target not used.
              >
              If JavaScript is available, I suppose one could add the target attribute
              by script, or write the whole link by script.
              That would be clearly a childish behavior: "it is OK to do if daddy
              cannot see it". W3C Validator doesn't really validate anything for a
              longest time by now anyway. With some caution it can be still used as
              a markup errors checker, as well as HTML Tidy can be. Outside that its
              HTML part is just a curious artifact of W3C ideas about the future of
              the Web as they had them in 1998-99

              At the modern time the DOCTYPE is only used for the mode switch with
              two doctypes covering all needs:
              <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"for
              BackCompat mode
              <!DOCTYPE htmlfor CSS1Compat mode

              See also:



              Comment

              • Thomas 'PointedEars' Lahn

                #8
                Re: javascipt to bust out of iframe

                VK wrote:
                W3C Validator doesn't really validate anything for a longest time by now
                anyway. [...]
                Evidently, you do not have a single clue what you are talking about.
                At the modern time the DOCTYPE is only used for the mode switch with two
                doctypes covering all needs: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
                Transitional//EN"for BackCompat mode
                Valid, but recommended against *because* of the DOCTYPE switch that
                triggers even more different rendering behavior among user agents.
                <!DOCTYPE htmlfor CSS1Compat mode
                Not Valid HTML 4.01, though.
                This is ridiculous. You are referring to an *incomplete* *draft*
                for HTML *5* that (obviously) lacks wide support.


                F'up2 comp.infosystem s.www.authoring.html

                PointedEars
                --
                Prototype.js was written by people who don't know javascript for people
                who don't know javascript. People who don't know javascript are not
                the best source of advice on designing systems that use javascript.
                -- Richard Cornford, cljs, <f806at$ail$1$8 300dec7@news.de mon.co.uk>

                Comment

                Working...