Capturing the ID from the Details Page to pass into Custom Code

Hi!

Does anyone know how to capture the Detail Page ID and pass it into a Custom Code JS Form?

Scenario: I have a Job Details page and I need to capture the Job ID (not the record ID) so that I can pass it in the form I am creating in the Custom Code Block.

Many Thanks!