How To Read The Param Value From The Object Tag Using Javascript May 25, 2024 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'); CopyplayerIDs will be an array. If you only have one playerID on the page, you can just say playerIDs[0] Solution 2: try this:Baca JugaExpress Ignoring Views DirectoryWhen Is Triggered Ajax Success?Pdfkit - Custom Fonts - Fs.readfilesync Is Not A Functionvar 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 postsHow To Pick Random Element In An Array Avoiding (except If It's) A Certain Value?Calling Jquery Function From FlashTool To Invoke Actions In Flash Swf Via JavascriptGet Externalinterface Definitions In Javascript Post a Comment for "How To Read The Param Value From The Object Tag Using Javascript"