简体   繁体   中英

Why I get “Illegal Character Syntax Error Unterminated String Literal” when I using javascript

I have an error syntag when i using javascript. This is my code

<a href=href=\"javascript:void(0);\" onclick=\"poptastic ('ruang_utama.php?id=<?php echo $id ?>') type="button" heigh="10" width="10"> FORM RUANG </a></td>

and the error said "illegal character syntax error unterminated string literal" Help me please!!! I'm very confused how to handle it...

您几乎没有像href=href=这样的错误,也很少href=href="

<a href="javascript:void(0);" onclick="poptastic('ruang_utama.php?id=<?php echo $id ?>')"> FORM RUANG </a></td>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM