Using an anchor to pop-up a window with JavaScriptAnchor tag:
<a href="javascript:popWindow('http://www.google.com');">Pop Window</a>
JavaScript:
<script type="text/javascript">
function popWindow(hrefTarget) {
// Pop up the window
window.open(hrefTarget, "_blank", "width=463,height=500,resizable=yes");
}</script>
Alternatively, returning a false will prevent the anchor from linking:
<a href='www.google.com' onclick='FunctionCall(); return false;'>Pop Window</a>
No comments:
Post a Comment