I’m a total noob in js scripting.
I’m a total noob in js scripting. Can someone tell me how can I retrieve screen dimensions, aka “screen” (to have screen.height and screen.width) and “window” (for window.innerHeight and window.outerHeight).
It’s not in LL items so I don’t find a way to do it.
Thanks for your help.
Enjoy!
]]>« My minimal attempt. (Previous Post)
< ![CDATA[
var d = LL.getCurrentDesktop();
alert(“height:”+d.height+ “. width:”+d.width);
I just wrote this quickly to demonstrate the syntax.
As for window inner and outer heights i dont know. Sorry.
I hope this helps somewhat
https://lh3.googleusercontent.com/NRllDz4CpFtCIDBcw5N9aoacBom0o64l1PeOwOIf3-U6u–kCn8t3mvyBPt4mGN9pxmsdDy1xw
]]>
< ![CDATA[
Thanks, that helps a lot.
It returns what I called the window inner values : if you show navigation bar and uncheck statusbar overlap, height will change accordingly. That’s perfect for me.
]]>
< ![CDATA[
Awesome! Glad I could help😉👍
]]>