I read the XY problem :). Thank you for your replies. Basically I want to know if a page is opened in a new window or not. If yes, then I want to do some processing before it is outputted on the screen. My pages are like: a.pl, b.pl, c.pl. If c.pl is opened from a link in a.pl in a new window, then during the processinf of c.pl i should come to know that so that i can append some extra stuff in c.pl output. That was the reason I was trying to find out if the page is in new window using Perl and not Javascript. So that if I can find out using Perl prior to outputting it, then I can modify it suitably. Now since you have said that I can modify using javascript, I can do the modifications in a.pl so that when c.pl is loaded in new window via a.pl I come to know about it. But what are the modifications required. Please guide me. Thank you very much, Anant

In reply to Re^6: Finding out Browser History Length by user2000
in thread Finding out Browser History Length by user2000

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.