Test js call
This page demonstrates how to invoke JavaScript (JS) functions from .NET.
See doc here
Prerendered Interop Example 1
JP: the javascrpt script is placed in HeadContent.The Javascript updates the page div tag inner text
JP: the div tag as a placehold for Javascript to change content must have a ref tag to refer to its name.
Text during render