Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have a jQuery popup window using only jQuery (without other plugins)

I need to know, whether we can do jQuery popup only using jQuery without using other plugins like Fancybox, Lightbox, etc.

like image 913
Rajasekar Avatar asked Feb 26 '23 15:02

Rajasekar


1 Answers

You can do something like this:

var mywin = window.open("", "my_popup", "location=0,status=0,scrollbars=0,width=500,height=500");
var contents = "HTML content...";
$(mywin.document.body).html(contents);
like image 53
István Ujj-Mészáros Avatar answered Apr 07 '23 20:04

István Ujj-Mészáros