javascript - Fill a Textbox with a Link? -


i have link , want prepare fill textbox value. link http://www.lolking.net/ , want if go site fill texbox write ("summore name..."). how can make this? must write script site ? or can prepare link fill textbox?

this question site textbox, name of textbox f12 , want prepare links how fill textbox

greetz

you reasonably write chrome extension this. you'd have add logic each site want work on, replacing text in box (i assume want automatically search summoner name) simple 1 line:

document.getelementsbyname("name")[0].value="<your summoner name>"; 

but example work on lolking.net. make more general, replace "name" in following way:

document.getelementsbyid("<input id>")[0].value="<replacement text>"; 

Popular posts from this blog

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -