Jump to content
Lucy

-ms-filter in javascript

Recommended Posts

Does anyone know how you're supposed to write '-ms-filter' in Javascript in order to use it (like element.style.-ms-filter)? I've tried 'msFilter', and variations thereof. I've also tried writing it as a string, but that causes errors. Any ideas?

Share this post


Link to post
Share on other sites

That's so old, the prefix '-ms-' was not used then, it should be

 

.style.filter = "alpha(opacity=80)";

 

if i remember rightly.

Share this post


Link to post
Share on other sites

From what I've read, it was 'filter' in IE7 and changed to '-ms-filter' in IE8.

 

Though, that said, my version of IE8 (on two computers, in fact) seems to work fine with just 'filter' :/ I wonder if there's any point in trying to put '-ms-filter' in...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...