I try to add button with popup dialog on my page. I add a embed code with this code:
<html><head><meta charset="utf-8"><title>Тег BUTTON</title></head><body><p> <a href="javascript:SP.UI.ModalDialog.ShowPopupDialog('/Pages/CreditRisk.aspx');" id="A1"><style="text-align: left"><button>Add Rating</button></a><style="text-align: right"><button>Watch List Params</button></p></body></html>
It good work in preview embed code, but when i click on button from my page nothing happens. What should i do?