Jump to content

[SOLVED] Popup Window For HTML Link Created With An Include


ahs10

Recommended Posts

I have my index.php page that contains an HTML link that is created by a PHP include.  I would like this link to open in a new window.  It would be super cool if I can define the height, width, and toolbar properties of the new window as well.

 

Here's the line of code in my include that gives me the HTML link on my index page....

 

$strTemp.="<TD ".$pstrDataColumnParameters."><A HREF =\"IssueDetails.php?ID=" .$strTemp1. "\" >".$strTemp2. " < /A></TD>";

 

(I put a space in the closing of the anchor tag so that the forums didn't confuse it as the closing tag for an URL.)

 

Thanks for taking the time.  Any help, guidance, links, or simple hellos are greatly appreciated.  Laters.....ahs10

Thanks!  Actually you put the target attribute in the wrong place (you put in the text that will appear as the link), but I altered it to this....

 

      $strTemp.="<TD ".$pstrDataColumnParameters."><A TARGET=\"_blank\" HREF =\"IssueDetails.php?ID=" .$strTemp1. "\" >".$strTemp2. " < /A></TD>";

 

I don't know why I didn't think of that.  For some reason, I had it in my head that I had to pass the link through a JS function.  Thanks again.

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.