how to open modal popup using anchor tag

I need to open a popup on click of anchor link. and out. The syntax to open a popup is: window.open(url, name, params): url An URL to load into the new window. You can open popup when tag onClick using below code, Create Vendor/Module/view/frontend/web/js/modal-form.js. If were going to open a popup, a good practice is to inform the user about it. An opening window icon near a link or button would allow the visitor to survive the focus shift and keep both windows in mind. A popup can be opened by the open (url, name, params) call. It returns the reference to the newly opened window. 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. The

how to open modal popup using anchor tag

No Comments Yet.

how to open modal popup using anchor tag