Dashboard refresh grid from form button

i have a dashboard with one form and one grid.
if user clicks on a button (java script) in form, i want grid to refresh

in button i wrote document.getElementById(“id-iframe-0”).contentDocument.location.reload(); but it doesnt work in dashboard iframe :frowning: