How do you open a URL in a dialog box JQUERY UI

前端 未结 4 1468
情书的邮戳
情书的邮戳 2020-12-17 00:52

I\'ve been looking for a simple solution for quite some time. I want a page (for example http://www.google.com) to be displayed in a JQuery UI Dialog window. The plan is to

4条回答
  •  我在风中等你
    2020-12-17 01:07

    You can use iframe:

     $("#iframeId").attr("src", $(this).attr("href"));
     $('#dialogId').dialog('open');