E
E
evVitkalov2015-09-18 18:42:31
Software and Internet Services
evVitkalov, 2015-09-18 18:42:31

How to generate a numeric ID in a link?

A link like this is given :
download-files43.ru/fileid=12345&uploadid=12345
What software can perform this task:
1. generate numbers in order in a given range
2. paste them into the fileid and uploadid parameters of the link
3. copy the results to the clipboard or export in txt
I would be grateful for the advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Antonov, 2015-09-18
@evVitkalov

<pre id="output">
    
</pre>

var minRange = 123;
var maxRange = 12345;

var linkList = [];

for (var i = minRange ; i <= maxRange ; i++) {
   linkList.push( 'http://download-files43.ru/fileid=' + i + '&uploadid=' + i );
};

document.querySelector('#output').innerHTML = linkList.join( "\n" );

jsfiddle.net/a7tLghda

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question