I have a href link where I want to open a pop up window when someone clicks on the link. Ive tried it this way, but the parent page would change and say [NULL].
<div class="abs">
<a class="emaillink" href="javascript:window.open('email_subscript.htm','','width=300,height=300,top=50,left=40')">Join our Email List!</a>
</div>
So I went ahead and changed it to this below and it seems to work. My question is, is that the right way to write this?
<div class="abs">
<a class="emaillink" href="#" onclick="javascript:window.open('email_subscript.htm','','width=300,height=300,top=50,left=40')">Join our Email List!</a>
</div>
<div class="abs">
<a class="emaillink" href="javascript:window.open('email_subscript.htm','','width=300,height=300,top=50,left=40')">Join our Email List!</a>
</div>
So I went ahead and changed it to this below and it seems to work. My question is, is that the right way to write this?
<div class="abs">
<a class="emaillink" href="#" onclick="javascript:window.open('email_subscript.htm','','width=300,height=300,top=50,left=40')">Join our Email List!</a>
</div>