javascript:popWin() through echo php -
how make js popup window inside echo line?
i have line popup not work :
echo '<td> <a href="javascript:popwin(edit.php?id='.$row[id].')">edit</a></td>'; then check link location on status bar :
javascript:popwin(edit.php?id=12) as learn before should single quote inside popwin(), have no clue solve this..
to place literal singlequote in echo use backslash escape it:
echo '<td> <a href="javascript:popwin(\'edit.php?id='.$row[id].'\')">edit</a></td>';
Comments
Post a Comment