Click to See Complete Forum and Search --> : Open page in pop-up...


scottyrob
04-05-2006, 03:35 AM
Hi can someone tell me why this code dosent work or suggest another piece of code i could try? Its supposed to load a new page in a pop-up (how can i make it so that the pop-up is a certain width and height with not menu bar or status bar etc...) But all it does is load it in the same iframe...


<a href='info.php?prod_date=".$row['Production_Date']."' onlick='window.open.('info.php?prod_date=".$row['prod_date']."',test);return false'>"

acemo
04-05-2006, 03:40 AM
Try this:

echo "<a href='info.php?prod_date=" . $row['Production_Date'] . "' target='_blank'>link name</a>";

scottyrob
04-05-2006, 03:53 AM
Thanks for that.. If i use your code, is there a way to make it have no navigation bar at the top (Back, Forward, Stop, Home, Address bar etc) and have the window a certain size? Thanks, Scott

acemo
04-05-2006, 03:56 AM
That would have to be done with javascript I think and to be honest I suck at javascript.

Try asking there.

jogol
04-05-2006, 04:17 AM
<a href="#" onClick="window.open('your url','your window name','scrollbars=yes,width=650,height=450')">Link Text</a>