What Is The Html Code To Make A Popup Welcome Message When Someone Enters My Website?
I want a little pop-up message that I can edit the text of on my website. It just pops up with a message, then someone can ex it out or hit ok. I’ve also seen messages that come up when you leave the site, how can I do that too? Thanks!
Tagged with: Code. • Enters • HTML • Make • Message • popup. • Someone
Filed under: HTML
Like this post? Subscribe to my RSS feed and get loads more!
you’ll have to do it in javascript like this:
put that bit of code in the beginning of the body.
-Avi
HTML alone will not do this, you need to use Javascript. That said, Javascript can easily be combined with HTML. For example, try writing your
tag like this:If that doesn’t work, then go up to the tags and put this between them:
Here I have used the text ‘Welcome to my web page!’ as the alert text. You can change this to whatever you want just by typing in it. Be warned however that alert boxes have a limited size, and also will not take HTML formatting (so tags in alert boxes will just look like typed tags and will not format the text). If you want formatted text in the box, you will instead have to open a new window with a web page in it rather than opening an alert box.
One advice: D O N ‘ T !
It is a very bad “design” and very amateurish.
—-
Nevertheless:
…
but please, don’t do it!
It is javascript, you need to put this code anywhere inbetween the
tags and replace the message partonLoad=”javascript: alert(‘your message here!’)”
hope that helps
try the code in this website its too beautiful
http://www.barakat-fans.co.cc
It’s a javascript code i think