I am having one InfoPath form and I am having code on VSTA project as well, now on certain condition I have to show a pop-up message in the form (I am running this form as browser enabled form). How to achieve this?
i think for your question, you can use below links will be useful.
http://msdn.microsoft.com/en-us/library/ie/hh278954.aspx
or