Is it possible to add a button inside frappe.msgprint?

@NCP

Hi everyone,

I have a question regarding Frappe client scripting. I want to show a message using frappe.msgprint and include a clickable button inside it. For example, I want the message to say “Employee already exists” and have a button that performs an action when clicked.

Is it possible to add a functional button inside frappe.msgprint, and if so, what is the recommended way to attach an event handler to it?

Thanks in advance for your guidance!

Yes you can perform.
Refer this document : Dialog API