I have this at above the body tag in my page —
<script type="text/javascript">
$(document).ready(function() {
$('#button').popupWindow({windowURL:'http://something',centerBrowser:1,width:400,height:300});
});
</script>
Is there a way to make this popup happen without the user actually clicking a button — programmatically w/ code inserted into the middle of the page with php on page load?
Add the following next.
Or put it all on on chained line:
For what it’s worth, you can invoke this from a non-rendered element: