how to open modal popup using anchor tag

in case a scrollbar appears). To trigger the modal window, you need to use a button or a link. Then include the two data-* attributes: data-toggle="modal" opens the modal window. data-target="#myModal" points to the id of the modal. How do you show modal dialog? The Window. showModalDialog () created and displayed a modal dialog box containing a specified HTML document. Change the size of the modal by adding the .modal-sm answer but the issue is that i have to add script inside .phtml The .modal-footer class is used to define the style for the Note: The attribute role="dialog" improves accessibility for Is there a fix for this? By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. The .modal-dialog class sets the proper width and margin of the