get element by his tag name and have the value with js code example
Example: select input by name javascript
var element = document.querySelector("form[name='second'] input[name='secondText']");
var element = document.querySelector("form[name='second'] input[name='secondText']");