Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

171
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda