Jump to content

Popup works but won't


sandbudd

Recommended Posts

this echo statement works and opens a new browser window with correct url but I can't get the window to resize?  Thanks in advance everyone.

 

<?php
if(empty($row_Recordset1['vb'])){
   //empty() returned true : so there is nothing
   echo 'VB';
}else{
   //empty() returned false so it is NOT true that there is nothing
   //so we can print it out:
   echo '<a href="javascript://" onClick="popupfunction(\'/highschool/volleyball/' . $row_Recordset1['vb'] . '\');"   class="style3">VB</a>';
}
?>

 

Here is the javascript

 

<script type="text/javascript">

// <![CDATA[

 

function popupfunction(url)

{

window.open(url, 400, 500);

return false;

}

 

// ]]>

</script>

Link to comment
https://forums.phpfreaks.com/topic/208720-popup-works-but-wont/
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.