Extract javascript from html file

How to extract javascript coding from a html file?

Normally HTML doesn’t contain javascript. Instead, it links to external script files, in much the same way as is done with CSS stylesheets.