Jump to content

Opening New Window


Omid

Recommended Posts

Hi folks, I have been working on a new script and i have met the same problem a couple of times and i've decided to ignore them until now  ;D. I have a php script and in the echo part, i have a link. I'm trying to get the link to open in a new window by using javascript but it doesnt work. [code]echo "<li><a href='javascript:newwindow()'>Edit</a></li>";[/code] and i have [code]<SCRIPT language="JavaScript">
function newwindow()
{
window.open('inc/menu.php?cmd=edit&id=$id','jav','width=300,height=200,resizable=no');
}
</SCRIPT>[/code] in the <head> section. Any help would be appreciated. Thanks ;D
Link to comment
https://forums.phpfreaks.com/topic/15373-opening-new-window/
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.