Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
document.getElementById.value new failure

I want to create an creditcard autofill for shopify pages. My plan was to fill the cardnumber input field (for example) with document.getElementById('number').value = 12355444;

I've made two Observations: 1.) If I write it in the console nothing happens untill I do a right click in the specific input field and press inspect. After inspecting and executing in browser-console input-field will get filled. But why do I have to inspect the field first?

2.) If I execute the document.getElementById('number').value = 12355444; over my little Chrome-extension I'll get the error: Uncaught TypeError: Cannot set properties of null (setting 'value') at :1:53

How do i get it worked?, it seems like I cant access or it doesnt find the ID's of the input-form.

If you want to try it out, take for example: https://newtonsupplyco.com/ cart sth and go untill payment.

Thank you

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The problem is that the element is within an iframe. You cannot get to the element because that would be cross-site scripting. See Get element from within an iFrame for more information.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda