passing variable from javascript to C#

I have a static var boolean variable in javascript where I want to access it in another C# script. Is there a fast way to do it?

Take a look at these: