Which Is The Correct Method Using Javascript In Html