Untitled
unknown
plain_text
a month ago
1.4 kB
3
Indexable
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Happy Birthday</title> <script> function birthdayMessage() { let name = prompt("Enter your sister's name:"); if (name) { alert("Happy Birthday, " + name + "! Wishing you a wonderful day filled with joy and love!"); } else { alert("Happy Birthday! Wishing you all the happiness in the world!"); } } </script> </head> <body onload="birthdayMessage()"> <h1>Welcome to the Birthday Page!</h1> <p>Refresh the page to send another birthday wish.</p> </body> </html> } } }
Editor is loading...
Leave a Comment