Internet Explorer: JavaScript examples

Post your working scripts, libraries and tools
burque505
Posts: 1398
Joined: 22 Jan 2017, 19:37

Re: Internet Explorer: JavaScript examples

20 Jan 2019, 16:30

@rommmcek, I think you're right:
So to get IE Zoom you need only: IEZoom := round(100*xdpi/96)
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Internet Explorer: JavaScript examples

11 Sep 2019, 12:00

I've added currentStyle to the list in the OP.

On IE, sometimes 'style' will give no result, whereas 'currentStyle' will give a result.
How to get an HTML element's style values in javascript? - Stack Overflow
https://stackoverflow.com/questions/2664045/how-to-get-an-html-elements-style-values-in-javascript
css - JavaScript get Styles - Stack Overflow
https://stackoverflow.com/questions/4172871/javascript-get-styles

E.g.:

Code: Select all

vInfo := ""
try vInfo := oElt.currentStyle.backgroundImage
if (vInfo = "")
	try vInfo := oElt.style.backgroundImage
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
burque505
Posts: 1398
Joined: 22 Jan 2017, 19:37

Re: Internet Explorer: JavaScript examples

11 Sep 2019, 12:05

@jeeswg, thanks for this and all the rest of your examples.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: robodesign and 30 guests