A child is in hospital with life-changing injuries after being electrocuted on a railway line.

The 14-year-old climbed onto the top of a stationary freight train, reached out and touched the overhead line.

The incident occurred on Saturday night between Carfin and Holytown.

He remains in hospital in a serious condition.

A second incident occurred at Murrayfield in Edinburgh on Sunday night when a 17-year-old boy was found lying on a footpath.

It was believed he had become electrocuted after getting access to the train tracks, and he is also in hospital fighting for his life.

Medics also believe his injuries to be life-changing.

Transport cops are urging youngsters to be aware of the dangers of the railway after the back-to-back incidents.

Detective Chief Inspector Marc Francey said: “In just over 24 hours this weekend two young people have sustained horrific injuries after taking unnecessary risks on the railway.

"First and foremost, our thoughts are with their loved ones who are being supported by officers.

“It should be abundantly clear from these two tragic incidents that the railway is not a playground.

"Modern trains can almost silently reach speeds of 125mph, and the overheard lines are powered by extremely high currents of electricity 24 hours a day, which can kill instantly or result in catastrophic, life-changing injuries.

“With the school holidays upon us, I would urge parents and carers to sit down with their children as soon as possible.

"Help us to prevent further tragedies by ensuring you know where you’re children are and talk to them about the dangers of the railway.

"Please, have that conversation with those in your care and encourage them to stay off the tracks.”