Tuesday, May 21, 2024
21
rated 0 times [  27] [ 6]  / answers: 1 / hits: 111282  / 13 Years ago, sat, april 9, 2011, 12:00:00

I have a page in chrome which contains many textboxes and I wish to feed values automatically to them. I already have the list of name-value pairs, so if I could simple execute a series of Javascript commands on the form document.getElementsByName(NAME)[0].value = VALUE; I'll be done (I hope...)



So the question is - can I run a JS code on the spot, or do I have to use a content script somehow?


More From » google-chrome

 Answers
23

Right click on the page and choose 'inspect element'. In the screen that opens now (the developer tools), clicking the second icon from the left @ the bottom of it opens a console, where you can type javascript. The console is linked to the current page.


[#92839] Thursday, April 7, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nathalieg

Total Points: 462
Total Questions: 106
Total Answers: 93

Location: Turks and Caicos Islands
Member since Tue, Mar 30, 2021
3 Years ago
;