DHTML_XML2_3

<!DOCTYPE html> <html> <head> <title>Unit 2 - Q3</title> <script type="text/javascript"> alert("Good Morning!"); var msg=prompt("Enter a greeting","Hey!"); var check=confirm("Are you sure you want to send this greeting?"); document.write("Greeting : Good Morning!<br><br>"); if(check==1) { if (msg==null) document.write("You didn't enter a greeting."); else document.write("Your reply : " + msg); } else document.write("You don't have any manners!"); </script> </head> </html>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.