如何向超鏈接添加Javascript提醒? 我想在有人點擊鏈接時彈出警報。 這是現在的劇本 -將javascript添加到超鏈接
<a href="<?php echo ($link1);?>" onclick="popitup();" data-role="button" data-theme="b" data-inline="true" > Send </a>
,我想將它添加到鏈接
<script type="text/javascript">alert('Text.');</script>
Darin的解決方案可能是更好儘管編寫javascript in-line是不好的做法。 – lifetimes