How to create ascending-numbers (1,2,3...) CSS IDs and corresponding hrefs with JavaScript?

Right-click on the HTML content for the context-sensitive menu, and select Inspect (bottom option in Chrome).