I wrote a jQuery function to show a popup that cab be draggable have multiple buttons etc: /*Popup function*/ function popup(config) { /*Default config*/ var buttons = config["buttons"]; var title = config["title"]; var html = config["html"]; var popupClassBase = "popup"; ...