開啟連結之前, 加上確認的動作, 方法如下:
<a href="somewhere.html"
onclick="return confirm('Follow the link?')">
Link to somewhere </a>
Test: Link to somewhere
建立這個部落格,分享一些心得及資訊.
<a href="somewhere.html"
onclick="return confirm('Follow the link?')">
Link to somewhere </a>