Popup window

function popupwindow(url, title, w, h) { var top = (screen.height/2)-(h/2); var left = (screen.width/2)-(w/2); return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); }
Function to open a popup window. Particularly useful for social share dialogs.

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.