English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I forgot, and I loaned my book to my friend.

You know, the little windows box that comes up with the alert and the ok button. People usually make them pop-up to say "welcome to my website" or something.(that's lame and it's not my intent.)

2006-06-23 13:01:24 · 2 answers · asked by Rockstar 6 in Computers & Internet Programming & Design

2 answers

When you code your webpage in HTML you need to do some coding in JavaScript.

The following code should help.





Content of webpage



This will successfully give you a prompt message box.

Hope that helps

2006-06-23 13:16:27 · answer #1 · answered by Raj B 2 · 1 0

In the tag, put something like onload="alert('Welcome to my website')". The "onload" event is fired when the page, well... loads, and the javascript "alert" function displays the string in a popup window with an "ok" button.

2006-06-23 20:16:10 · answer #2 · answered by Ben M 2 · 0 0

fedest.com, questions and answers