Reputation: 341
This is my log-in and I need the popup window for the link "Change Password" instead of using self or blank. The picture shows the sample log-in and the link.
The code of the link:
<a href="Update Password.html" >Change Your password?</a>
Upvotes: 0
Views: 620
Reputation: 3964
Javascript
<script type="text/javascript">
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=500,width=500,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
Html
<a href="JavaScript:newPopup('Update Password.html');" >Change Your password?</a>
Upvotes: 1