popup window after form submit

popup window after form submit

Hi

I have an HTML page which pases some value on button click event to an API using jquery and its succesfully running.It returns true or false.i want that if its returns true a popup box should appear where i have to show some message.
i dont know how to do so after getting that respose as user have already submit the form.

Please help

Thanx in advance