This question already has an answer here:
I currently have a contact form that when completed triggers a browser alert/popup but i would like to style the popup to be more like a modal. So the popup would be centred & overlaid on the page with a dark transparent background that fades away when clicked - is this possible?
Here is my current script triggering the popup alert: http://jsfiddle.net/xf4C6/
function fcheckf(){
var x = document.getElementById('check').value;
if(x == 0)
{
return false;
}
else
{
alert("Your message has been sent! Thank you for getting in touch.");
}
}
Oki doki heres my answer:
HTML
Javascript
Change
to
you can use jquery ui dialog
see documentation