javascript - Popup window inside php code -


i'm trying table pressing on id, opens popup window, menu, example, change row values, add comments.. have problem generating link each row:

foreach ($results $row) { // each $row row query $rowid = $row->id; echo '<tr><td>'; echo '<a href="#" onclick="javascript:window.open("http://192.168.210.140/todolist/controls-menu?funnelid="'.$rowid.',"controls menu","width= 700,height= 500,toolbar= no,location= no,directories= 0,status= no,menubar= no,scrollbars= no,resizable= yes,left= 400,top= 150,screenx= 400,screeny= 150");">'.$rowid.'</a>'; 

maybe it's need add

<script type="text/javascript> ... script when pressing <a href="#"> </script> 

but have no idea, how detect script link pressed, example

http://192.168.210.140/todolist/controls-menu?funnelid=999  

or

http://192.168.210.140/todolist/controls-menu?funnelid=1100 

p.s. i'm using wordpress.

html code

<?php  $id=1;?> <a href="" onclick="popitup('popup1.php?id=<?php echo $id;?>')">open</a> 

javascript code

<script type="text/javascript"> function popitup(url) { newwindow=window.open(url,'name','height=200,width=150'); if (window.focus) {newwindow.focus()} return false; } </script> 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -