Message Box in my web site.

  • 1
  • Question
  • Updated 7 years ago
  • Answered
Hi
i`m Delli, when the user open my site that time possible to set the message Box (Ex:"Welcome to my web site " Options "OK" "Cancel") .
Thank You....
Photo of mdellinsp

mdellinsp

  • 8 Posts
  • 1 Reply Like

Posted 7 years ago

  • 1
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hi Delli,

Do you just want a message to pop up and that's it? If so, just drag over an HTML widget on your page and paste this into it:


<script type="text/javascript">
var message = "Welcome to my website!";
alert(message);
</script>



It'll pop up and say "Welcome to my website!" when they enter the site with the option "OK". You can change the message if you want but keep the quotes and if you want to add double quotes inside the message, please put a \ (backslash) before each "double quote" so it won't mess up the code but not for the two around the whole message.

If this is not what you wanted, please let me know.
Photo of mdellinsp

mdellinsp

  • 8 Posts
  • 1 Reply Like
Thank You...