10 examples of 'onload popup window jquery' in JavaScript

Every line of 'onload popup window jquery' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
4function loadPopup() {
5 // loads popup only if it is disabled
6 if (popupStatus == 0) {
7 jQuery("#backgroundPopup").css({
8 "opacity" : "0.7"
9 });
10 jQuery("#backgroundPopup").fadeIn("slow");
11 jQuery("#popupChooser").fadeIn("slow");
12 popupStatus = 1;
13 }
14}
5function loadPopup(page_url){
6 //loads popup only if it is disabled
7 if(popupStatus==0){
8 jQuery("#backgroundPopup").css({
9 "opacity": "0.7"
10 });
11 jQuery("#backgroundPopup").fadeIn("slow");
12 jQuery("#popupContent").fadeIn("slow");
13 jQuery("#contentArea").attr("src", page_url);
14 popupStatus = 1;
15 }
16}
8function popup_loader() {
9 jQuery('html,body').css('overflow', 'auto');
10 jQuery('#adminmenuwrap').css({'z-index':'auto'});
11 var $dlg = jQuery(".loader").dialog({
12 open: function(event, ui) {
13 jQuery('html,body').css('overflow', 'hidden');
14 jQuery('#adminmenuwrap').css({'z-index':0});
15 },
16 close: function(event, ui) {
17 jQuery('html,body').css('overflow', 'auto');
18 jQuery('#adminmenuwrap').css({'z-index':'auto'});
19 },
20 position: "center",
21 modal: true,
22 resizable: false,
23 dialogClass: 'loaderPopup'
24 });
25 jQuery(".ui-dialog-titlebar").hide();
26}
81private static onDocumentReady(callback: Function) {
82 jQuery(document).ready(callback);
83}
315function windowPopup(url, width, height) {
316 var left = screen.width / 2 - width / 2,
317 top = screen.height / 2 - height / 2;
318 window.open(url, "", "menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
319}
1export function windowPopup(url: string, width: number, height: number) {
2 // Calculate the position of the popup so
3 // it’s centered on the screen.
4 var left = screen.width / 2 - width / 2,
5 top = screen.height / 2 - height / 2;
6 window.open(
7 url,
8 '',
9 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=' +
10 width +
11 ',height=' +
12 height +
13 ',top=' +
14 top +
15 ',left=' +
16 left
17 );
18}
4function popUp(URL) {
5 day = new Date();
6 id = day.getTime();
7 eval("page = window.open(URL, 'xqdoccode', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=400,left = 412,top = 334');")
8 page.focus();
9}
26function openPopup (href) {
27 if (window.popup && !window.closed) window.popup.close();
28 var width = 1000;
29 var height = 800;
30 var x = (screen.width / 2) - (width / 2);
31 var y = (screen.height / 2) - (height / 2);
32 var win = new BrowserWindow({
33 width, height, x, y,
34 center: true,
35 autoHideMenuBar: true,
36 webPreferences: {
37 webSecurity: true,
38 nodeIntegration: false,
39 plugins: true,
40 },
41 });
42 win.id = 'popup';
43 win.loadURL(href);
44 window.win = win;
45 /*
46 nw.Window.open('app/popup.html?href=' + encodeURIComponent(href), {x: left, y: top, width: w, height: h},
47 function (win) {
48 window.popup = win.window;
49
50 // do not open the window and open it in external browser
51 win.on('new-win-policy', function (frame, url, policy) {
52 policy.ignore();
53 nw.Shell.openExternal(url);
54 });
55
56 win.window.id = 'popup';
57 win.window.config = App.config;
58 win.focus();
59 });
60 */
61}
18function popupWin(url, w, h) {
19 var left = (screen.width/2)-(w/2);
20 var top = (screen.height/2)-(h/2);
21 return window.open(url, null, 'location=yes,toolbar=no,status=no,menubar=no,width='+w+',height='+h+',top='+top+',left='+left);
22}
37function popupwin(content) {
38 op = window.open();
39 op.document.open('text/plain');
40 op.document.write(content);
41 op.document.close();
42}

Related snippets