I want to extract the name value (which by the way happens to be randomly generated in this case) and be able to use this value as a javascript variable.
The HTML would look something like this:
<map name="20934948">
I want to get this 20934948 value and use that as a variable.
Example:
var myCustomVariableName = extracted javascript
So then in this case, myCustomVariableName would be 20934948.
extracted javascript- clearly that won't work ... butdocument.querySelector('map').namewill get you the name of the firstmapin the documentdocument.querySelector('map name').value;but I thought that wasn't right so I asked.