Jump to content

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

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.