pass description to title of second page

Discussion in 'JavaScript' started by BAM78, Apr 4, 2009.

  1. #1
    I posted this in the php forum but I think its a javascript question


    I have a link on the first page of my site

    <a href="page2.php" onclick="doPop(this.href); return false;">Description</a>


    How do I make the page2.php put the Description in the title of the popup window?
     
    BAM78, Apr 4, 2009 IP
  2. cont911

    cont911 Peon

    Messages:
    50
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1) on click add get parameter to the url poiting to second page like http://.../page2.php?desc=Description
    2) on load of second page read this get parameters and assign title using js
     
    cont911, Apr 6, 2009 IP