Thursday, October 30, 2014

Previous Interview Question Next Interview Question
Home

getElementsByTagName Vs getElementsByName in javascript

Difference Between getElementsByTagName and getElementsByName in javascript :

If you see these methods (getElementsByTagName and  getElementsByName in javascript)in sudden we will bit confuse


in this article i am going to explain the exact different between those methods in detail

Suppose you have this HTML :
<input name="test" type="url">
You'd got it with
document.getElementsByTagName('input')
or
document.getElementsByName('test')




Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment