0

Does anyone know how well supported JavaScript's Function() Constructor is for older browsers?

var returnSomeID=new Function("return Document.getElementById('someID')"));
10
  • 1
    MDN Browser compatibility for Function Commented Aug 11, 2015 at 16:24
  • It's been there since the language was introduced. Do you suspect that it's not working in some particular browser? Commented Aug 11, 2015 at 16:25
  • Also the code you're passing to the constructor is (probably) wrong. It (probably) should be document not Document. Commented Aug 11, 2015 at 16:26
  • 1
    Also also that's not a good way to create a function. What are you trying to achieve? Commented Aug 11, 2015 at 16:26
  • @JamesThorpe I looked there before posting this question. It says IE, but not what versions. IE6? Commented Aug 11, 2015 at 16:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.