How do I get the user's browser window size in a Delphi TMS Web Core Website?

58 views Asked by At

I want to get the size of the browser window using Delphi, how can I do this?

1

There are 1 answers

0
Shaun Roselt On BEST ANSWER

You can get it via the window class from the WEB unit:

function GetBrowserWindowSize: String;
begin
  Result := IntToStr(window.outerWidth) + 'x' + IntToStr(window.outerHeight);
end;