How to alert a Prompt box with a input box

How to alert a Prompt box with a input box::

<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    alert("I am an alert box!");
}
</script>

 

source:  https://www.w3schools.com/js/js_popup.asp

Please follow and like us:
0