Magnific popup to open after the page is loaded
Dear Sir
I want to open an Image using magnific popup after load of a web page
I used code from
in web page
It does not work
My code
- <script>
- (function($) {
- $(window).load(function () {
- alert('code to open Magnific Popup after page load');
- // retrieved this line of code from http://dimsemenov.com/plugins/magnific-popup/documentation.html#api
- $.magnificPopup.open({
- items: {
- src: 'Bull_and_bear.jpg'
- },
- type: 'image'
- // You may add options here, they're exactly the same as for $.fn.magnificPopup call
- // Note that some settings that rely on click event (like disableOn or midClick) will not work here
- }, 0);
- });
- })(jQuery);
- </script>
The dummy alert
- alert('code to open Magnific Popup after page load');
works after web page is loaded
I will like to know why the said popup is not working
The code is also specified in
Under heading
Public Methods