Yes you need javascript. The simplest way is to just put this at the bottom of your HTML page:
<script type="text/javascript">
alert("Hello world");
</script>
There are more preferred methods, like using jQuery's ready function, but this method will work.
Answer from Adam Plocher on Stack OverflowHTML - Alert Box when loading page
how to make a message box that sends message to email?
html - Create message box - Stack Overflow
Html tags in alert box?
Videos
Yes you need javascript. The simplest way is to just put this at the bottom of your HTML page:
<script type="text/javascript">
alert("Hello world");
</script>
There are more preferred methods, like using jQuery's ready function, but this method will work.
You can use a variety of methods, one uses Javascript window.onload function in a simple function call from a script or from the body as in the solutions above, you can also use jQuery to do this but its just a modification of Javascript...Just add Jquery to your header by pasting
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
to your head section and open another script tag where you display the alert when the DOM is ready i.e. `
<script>
$("document").ready( function () {
alert("Hello, world");
});
</script>
`
This uses Jquery to run the function but since jQuery is a Javascript framework it contains Javascript code hence the Javascript alert function..hope this helps...
So I know this is doable, but I'm having a hard time finding/creating a code for this?
a submit box like this: https://www.w3schools.com/html/html_forms.asp
but sends to email.
When I use "mailto:" it forwards to a form not secure page that has a send anyways option that opens up outlook. What I want is a simple message box where the message gets sent to my email.
Any help?