Send the following on WhatsApp
Continue to ChatSharepoint 2010 modal dialog , apply different style/javascript at runtime from parent page https://www.aliencoders.org/content/sharepoint-2010-modal-dialog-apply-different-stylejavascript-runtime-parent-page/