Tutorial Details
- Judul: Javascripth Prompt Box
- Difficulty: Beginner
- Platform: -
- Bahasa Scripth: Javascript
- Software : -
- Estimated Completion Time: 15 minutes
- Created:Ricko Nada (Pustaka Flash)
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>
5 Halaman yang sering dikunjungi:
0 komentar:
Post a Comment