madcrazy1 Posted October 30, 2007 Share Posted October 30, 2007 hi i cant get the javascript to work inside echo. i need the window to pop up. echo ("<a href='.$zeb.' onclick=\"window.open('.$zeb.','popup','width=440,height=290,left=165,top=140'); return false\"><img src='.$ICON.' border='0'></a>"); thanks! Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted October 30, 2007 Share Posted October 30, 2007 here you go you where not ending the string properly echo ("<a href='".$zeb."' onclick=\"window.open('".$zeb."','popup','width=440,height=290,left=165,top=140'); return false\"><img src='".$ICON."' border='0'></a>"); Quote Link to comment Share on other sites More sharing options...
0x00 Posted October 30, 2007 Share Posted October 30, 2007 Here's my version... echo ("<a href=".$zeb." onclick='window.open(".$zeb.",'popup','width=440,height=290,left=165,top=140'); return false'><img src=".$ICON." border='0'></a>"); Quote Link to comment Share on other sites More sharing options...
aschk Posted October 30, 2007 Share Posted October 30, 2007 Here's my version : echo "<a href={$zeb} onclick='window.open(\'{$zeb}\',\'popup\',\'width=440,height=290,left=165,top=140\'); return false'> <img src={$ICON} border='0'> </a>"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.