Nathan Riley
asked on
Remove "The Page at domain.com says:" within Popup
I have the following code that puts up a pop up when the user hits submit:
The pop up that then comes up is:
How can I edit my script to remove the "The page at domain.com says:" part?
<script>
function submitForm()
{
//perhaps some client validation here
document.forms["yourform"].submit();
alert("Thanks for submitting.")
}
</script>
<input type="button" onclick="submitForm();" name="go" value="Go" />
The pop up that then comes up is:
The page at domain.com says:
Thanks for submitting.
How can I edit my script to remove the "The page at domain.com says:" part?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just put a message in a hidden div and change the display property to block BEFORE you submit.
Or handle it from the server side by replying back with the message after you submit.
Cd&