Open Popup in jQuery

Open Popup window in jQuery

This code is to open Popup window (center Popup) in jQuery framework. By just passing the url parameter to centerPopup(url) and loadPopup(url) functions you can enable the popup opening in jQuery. The below example code will enable the popup window when you click on the button id popup-button this function will open the popup window.

jQuery(document).ready(function($){
//Click the button event!
$("#popup-button").click(function(){
var popup = jQuery(this).next("div.popupFAQ");
//centering with css
centerPopup(popup);
//load popup
loadPopup(popup);
});
});


Related Topic Center Popup Window
How to Block Popups
How to Disable Tagging on Facebook
How to Export Facebook Contacts to Yahoo
Apple iTunes Application Widgets List

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback