1. Popout Box
<html>
<head>
<title>TNW (Web Service & ICT Solutions)</title>
</head>
<body>
<p><h1>TNW provides the best ICT Solutions for your business.</h1></p>
<p><h3>Please click <a href = "https:www.tnw87.site">here</a> if you want to know more details.</h3></p>
<script>
var txt = "Welcome to TNW (Web Service & ICT Solutions)";
window.alert(txt);
</script>
</body>
</html>
2. Prompt Box
<html>
<head>
<title>TNW (Web Service & ICT Solutions)</title>
</head>
<body>
<p id = "demo"></p>
<button type = "button" onclick = "myFun()">Click Here</button>
<script>
function myFun(){
var txt;
var tnw = prompt("TNW - ICT Solutions", "Like");
if(tnw == null || tnw == "" || tnw != "Like"){
txt = "Sorry!"
}else{
txt = "Welcome to TNW (Web Service & ICT Solutions)";
}
document.getElementById("demo").innerHTML = txt;
}
</script>
</body>
</html>
3. Confirm Box
<html>
<head>
<title>TNW (Web Service & ICT Solutions)</title>
</head>
<body>
<p id = "demo"></p>
<button type = "button" onclick = "myFun()">Click Here</button>
<script>
function myFun(){
var txt;
if(confirm("I will visit to TNW!")){
txt = "Welcome to TNW (Web Service and ICT Solutions!";
}else{
txt = "Sorry!";
}
document.getElementById("demo").innerHTML = txt;
}
</script>
</body>
</html>
What do you think?
Send us feedback!