Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

172
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!