Jump to content

How do I open a page in a new window????


CaseyC1

Recommended Posts

The following code is from a php .tpl file:

 

<!-- BEGIN: card_true -->

  <tr class="copyText">

    <td><strong>{LANG_PAY_BY_CARD}</strong></td>

    <td> </td>

  </tr>

  <tr class="copyText">

    <td valign="top">{LANG_CARD_TYPE}</td>

    <td>

<!-- BEGIN: repeat_card -->

<img src="images/box.gif" alt="" /> {VAL_CARD_NAME}<br />

<!-- END: repeat_card --></td>

  </tr>

  <tr class="copyText">

    <td>{LANG_CARD_NO}</td>

    <td>________________________</td>

  </tr>

  <tr class="copyText">

    <td>{LANG_3_DIG_ID}</td>

    <td>______</td>

  </tr>

  <tr class="copyText">

    <td>{LANG_EXPIRE_DATE}</td>

    <td>____________</td>

  </tr>

  <tr class="copyText">

    <td>{LANG_SIGNATURE}</td>

    <td>________________________</td>

  </tr>

<!-- END: card_true -->

 

The red section asks for the 3 digit security code from the back of the card.  I have a web page (MHTML) that has a pic of the back of the card and shows the sec code. I would like to add a link directly below the section in red, that will open my explanation page in another window. How do I do that?

 

Thanks,

Klaus Cook

Houston, Texas

Link to comment
https://forums.phpfreaks.com/topic/90302-how-do-i-open-a-page-in-a-new-window/
Share on other sites

 

Are you wanting a pop-up or just to open page in new window?

 

Pop-Up

 


<script language="javascript">
function popIt()
{
window.open('yourpage.html','neWin','width=300,height=225,status=no,menubar=no,toolbar=no,scrolling=no,resize=no,left=0,top=0')
}
</script>

<a href="javascript://" onclick="popIt()">Display Page</a>

 

Open Full Page In New Window

 


<a href="yourpage.html" target="_blank">Display Page</a>

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.