I have created CiviCrm profiles. How can I display a message when user submits the profile? First It should display a message (pop or alert) and then redirect to another page.
In the advanced settings of a profile, there is a Redirect URL field. Copying from the CiviCRM user guide:
"This applies only to Profiles that are being used as standalone forms; it will not apply when the Profile is embedded in an event sign-up or contribution form. The Redirect URL field allows you to send people to a specific web page after they submit their form. For example, you may want to create a web page that thanks people for submitting their information. If this field is left blank, people will be directed to a page which displays the information they've just entered."
At the top of the default redirect page, a generic statement of "Thank you. Your information has been saved." will be displayed, but this is not a pop-up. If you want to change this wording, you could use Administer > Customize Data and Screens > Word Replacements, but keep in mind that this replacement will be applied globally - i.e. you should not use this option if you want the wording to be different for each profile submitted.
Hope this helps!