I have a link like this:
<a href="/index2.php?option=com_jumi&fileid=3&Itemid=11" onclick="window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,')   I want the new opening window to open in a specific size. How do I specify the height and width?
In HTML Executable, you can define several properties for pop-up windows: go to Application Settings => Pop-Ups. You may define the default size for new pop-up windows: enter the desired width and height in the different fields.
<a href="/index2.php?option=com_jumi&fileid=3&Itemid=11"    onclick="window.open(this.href,'targetWindow',                                    `toolbar=no,                                     location=no,                                     status=no,                                     menubar=no,                                     scrollbars=yes,                                     resizable=yes,                                     width=SomeSize,                                     height=SomeSize`);  return false;">Popup link</a>   Where width and height are pixels without units (width=400 not width=400px).
In most browsers it will not work if it is not written without line breaks, once the variables are setup have everything in one line:
<a href="/index2.php?option=com_jumi&fileid=3&Itemid=11" onclick="window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=SomeSize,height=SomeSize'); return false;">Popup link</a>  
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With