Problem printing popup pages.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lasse Reichstein Nielsen

    #16
    Re: Problem printing popup pages.

    "Fabian" <lajzar@hotmail .com> writes:
    [color=blue]
    > DU hu kiteb:
    >[color=green]
    >> Fabian wrote:[/color][/color]
    [color=blue][color=green]
    >> a:link:after { content: " (" attr(href) ") "; }[/color]
    >
    > I just tested this; it doesn't appear to work, or does it only have the
    > expected effect when printing to a printer, and not to a screen?[/color]

    The part you quoted can work at any time. If it is wrapped in a
    @media print { ...}
    or included with
    <link rel="stylesheet " media="print" ...>
    then it only affects the printed media.

    That line alone only puts content after unvisited links. Add an
    a:visited:after selector to also match visited links.
    [color=blue]
    > Where is the reference for this?[/color]
    <URL:http://www.w3.org/TR/CSS2/generate.html#b efore-after-content>
    <URL:http://www.w3.org/TR/CSS2/generate.html#c ontent>
    [color=blue]
    > I agree this would be VERY useful if it consistently worked across
    > environments.[/color]

    It's CSS 2, so most likely, IE doesn't support it. Modern browsers
    do. After all, CSS 2 has been a recommendation since May 1998.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • gb

      #17
      Re: Problem printing popup pages.

      From: "Lee Mundie" <lee.j.mundie@n tlworld.com>
      Newsgroups: comp.lang.javas cript
      Sent: Saturday, November 22, 2003 10:22 PM
      Subject: Re: Problem printing popup pages.

      [color=blue]
      > <a href="javascrip t:onClick=windo w.print()">prin t</a> should work.
      > Regards
      > Lee[/color]

      Lee,

      Problem is that it does'ent. This prints the original page not the popup
      page. Even though this has been included in the new window using
      document.write( ). Is this a browser issue?

      Giles[color=blue]
      >[/color]


      "


      Comment

      Working...