Controller.JavaScript Method
Creates a JavaScriptResult object.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- script
- Type: System.String
The JavaScript code to run on the client
Return Value
Type: System.Web.Mvc.JavaScriptResultThe JavaScriptResult object that writes the script to the response.
Show: