This OLCC programming example page demonstrates getting a Chemical Abstracts System Registry Number from NIST WebBook using JavaScript.

Note that this query requires a proxy, as the NIST Webbook does not allow cross-origin AJAX
It uses web page "scraping" to find the desired information within HTML.

Press the "test" button to evaluate the JavaScript in the textarea below.
Feel free to modify the JavaScript and press test again.




url:
result:
raw HTML: