/**
* Opens up new popup window
* @param link string
* @param title string
* @param width number
* @param height number
*
* @description
* data: { key: value }
* str: 'Example string with {key}' -> Example string with value
*/
function pop(link, title, width, height) {
var w = width || 600,
h = height || 400,
windowParams = 'resizable,toolbar=0,location=0,scrollbars=1,menubar=0,width=' + w + ',height=' + h + ',top=' + ((screen.height-h) / 2) + ',left=' + ((screen.width-w) / 2) + '\'',
newWindow = window.open(link, title, windowParams);
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.