How to open an html page as a popup on a page (a new window does not open) using jQuery

I have a link button, and when I click the link button, the popup will open (with the page itself, like modalpopup. Now I need to get the popup using jquery and the message database should appear inside the div text. How can I get a message from backend.

means opening a div in a modal popup using jquery

or opens an html page in a popup in the same window using jquery

Thank you and respectfully Vara Prasad.M

+3
source share
2 answers

Facebox jQuery. , . ,

<a href="remote.html" rel="facebox">text</a>

facebox,

jQuery(document).ready(function($) {
    $('a[rel*=facebox]').facebox()
});

. Fancybox ThickBox, .

+4

:

  • jQuery

jQuery Dialog (http://docs.jquery.com/UI/Dialog) , jQuery (http://api.jquery.com/load/) .

, , .

-1

Source: https://habr.com/ru/post/1739938/


All Articles