Home Notices Documents Classes Download Others Rice
Classes  >  jsexecutor  >  SetSRC(string)
jsexecutor class : SetSRC(string) method

Description

It creates a script tag to current page, and sets the src attribute in order to load JavaScript code.

Syntax

jsexecutorInstance.SetSRC(string url)

Arguments

ClassNameDescription
stringurlAn url of JavaScript code to be loaded.

Return value

None.

Sample code

1:

jsexecutor jse = new jsexecutor();

2:

string url = "http://somewhere...";

3:

jse.SetSRC(url);

Notes

This method creates new script tag without id attribute, and sets the src attribute.

The charset attribute is utf-8.

Links for reference

None.

Copyright © Rice All rights reserved.