Open a page in same window using onclick

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nimesh83
    New Member
    • Feb 2008
    • 1

    Open a page in same window using onclick

    HIi

    how can i open page like help(showhelpms t.php) in my webpage(test.ph p) on tha same page(test.php) thru onclick and document.locati on

    this is my code

    <IMG onclick=documen t.location="sho whelpmst.php?he lpid=$questioni d[0]" src='../templates/images/question_1.gif' 'align='absMidd le' alt='Help' style="cursor:h elp"></td>
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

    This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

    MODERATOR

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Originally posted by Nimesh83
      HIi

      how can i open page like help(showhelpms t.php) in my webpage(test.ph p) on tha same page(test.php) thru onclick and document.locati on

      this is my code

      <IMG onclick=documen t.location="sho whelpmst.php?he lpid=$questioni d[0]" src='../templates/images/question_1.gif' 'align='absMidd le' alt='Help' style="cursor:h elp"></td>
      Use location.href. Are you using PHP to generate the img tag?

      Comment

      Working...