It became interesting what is the difference between:
document['getElementById']("id"); и document.getElementById("id");
specifically in performance can, or browser policy.
Everything;)
It became interesting what is the difference between:
document['getElementById']("id"); и document.getElementById("id");
specifically in performance can, or browser policy.
Everything;)
http://shamansir.github.com/JavaScript-Garden/#object.general :
the only difference is that using square brackets allows you to set properties dynamically
Source: https://ru.stackoverflow.com/questions/74756/
All Articles