WHAT'S NEW?
Loading...

Javascripth Prompt Box


Tutorial Details





live demo :

status...


Scripth yang digunakan :
<script type="text/javascript">
function myPrompt(){
    var promptValue = prompt('Supply us with a value below:', '');
    if(promptValue != null){
        document.getElementById("status").innerHTML = promptValue;
    }
}
</script>
<p><input type="button" value="Supply Value" onclick="myPrompt()"></p>
<h3 id="status">status...</h3>



0 komentar:

Post a Comment