OpenURL is there a parameter to control webpage size? lazarus / 31-LCL ---------------------------------------------------------------------- Elmug · 2011-09-09 18:08 Good people, I was wondering if there is a parameter to control the webpage size that the OpenURL opens. Otherwise, they open by the size and location (memory) of Firefox. Probably not, but I thought I better ask, rather than answer myself. Thanks! ---------------------------------------------------------------------- jwdietrich · 2011-09-13 20:03 Unfortunately, it is not possible to call JavaScript code via OpenURL. A simple solution seems to be to hardcode a JavaScript that resizes the window directly in your HTML document. A more elegant solution could be to deliver the height and the width as search parameters, e. g. like OpenURL('http://lazarus.freepascal.org?width=200&height=200'); The JavaScript could then extract the search arguments via StringfromSearch(window.document.location.search) and set the window's dimensions. However, this still requires that the HTML/JavaScript part is prepared to process information from your Pascal code. You can also open an arbitrary web page (like the Lazarus home page in the example), but, of course, the parameters for width and height are ignored here. ---------------------------------------------------------------------- Elmug · 2011-09-18 19:51 Thanks jwdietrich. I'll write a Java script as suggested.