Jump to content

pop up window


crazysaint

Recommended Posts

hi, i have the following hyperlink but i want it to open a pop up window.

am still new to php and any help is welcome

 

 <?php Spacer(); ?>

              <TR><td align=center><img <?php echo createComIcon($root_path,'qkvw.gif','0','',FALSE) ?>></td>
                <TD vAlign=top ><FONT 
                  face="Verdana,Helvetica,Arial" size=2> <nobr>
                                 <a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDListEncounters ?></a>
                                  </nobr> </FONT></TD>
                </TR>

Link to comment
https://forums.phpfreaks.com/topic/50632-pop-up-window/
Share on other sites

<a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>" target="<?php echo $target ?>"><?php echo $LDListEncounters ?></a>

 

this is if you are using a dtd that has target= as a valid attribute for the a tag

 

OR (and preference) you can use a standards compliant code...

 

<a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>" onclick="window.open(this.href);" onkeypress="window.open(this.href);"><?php echo $LDListEncounters ?></a>

Link to comment
https://forums.phpfreaks.com/topic/50632-pop-up-window/#findComment-248876
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.