How To Read The Param Value From The Object Tag Using Javascript February 03, 2023 Post a Comment Is it possible to read the playerID value using JavaScript? Solution 1: Or, you can try the following statement. It will return all the play IDs on the page, if you have multiple. var playerIDs = document.getElementsByName('playerID'); Copy playerIDs will be an array. If you only have one playerID on the page, you can just say playerIDs[0] Solution 2: try this:Baca JugaFlash Mp3 Player With Javascript ControlsDynamically Change Span Text Based On Selected Option JavascriptGoogle Map Direction Render Alternate Route How To Select Desired Path var obj = document.getElementById('myId'); var value = ''; for(var param in obj.childNodes){ if (obj.childNodes[param].getAttribute('name') == 'playerID'){ value = obj.childNodes[param].getAttribute('value'); break; } } Copy Share You may like these postsCount Objects In Array Big DataWhat Do Braces Do In Javascript?Target Only The Contents Of A Folder In GulpCheck Scroll Lock, Num Lock & Caps Lock In Javascript On Page Load Post a Comment for "How To Read The Param Value From The Object Tag Using Javascript"