Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.