Dynamicweb 8 Documentation
AddJavascript Method
Example 

The javascript path reference.
Adds a javascript path to the pages scripts section in head.
Syntax
'Declaration
 
Public Sub AddJavascript( _ 
   ByVal javascript As String _ 
) 
public void AddJavascript( 
   string javascript 
)

Parameters

javascript
The javascript path reference.
Example
Adding a javascriptAdding a javascript
Dynamicweb.Frontend.PageView.Current().AddJavascript("/Files/System/Myjs.js");
Dynamicweb.Frontend.PageView.Current.AddJavascript("/Files/System/Myjs.js")
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PageView Class
PageView Members

Send Feedback