function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Trif Cristian 7Trif Cristian 7 

When i press a button to i want to display a specific message.

Hello guys, I want to make a Visualforce page and in that visualforce page i want to make a button, called "Trimite Facturi" and when i press that button I want to display a message "Email was sent out successfully ". I was wondering what is the easiest way to make to accomplish this.

I created my VF page and now when i press that button i want to display a message "Email was sent out successfully", in the right of that button and  when the message shows up i don't want for whole page to load.User-added image 
Manj_SFDCManj_SFDC
Use  <apex:pageMessages /> in your VF page and set the message in your controller using ApexPages.addmessage
you can also refer
http://sfdcsrini.blogspot.com/2014/12/show-error-message-in-visualforce-page.html

Mark it best answer if it hepls you