usminuru
usminuru

Reputation: 341

How to make link to be opened by popup window or page?

enter image description here 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

Answers (1)

Karuppiah RK
Karuppiah RK

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

Related Questions