For checking internet real time
function realTimeInternet()
{
_checkInternet({
connect:function(){
alert("Connected",false);
}
,
disconnected:function(){
alert("Disconnected");
}
});
}
setInterval(function(){
realTimeInternet();
},2000);
For select text
_selectText("my_text");
For add value to select option
var data_val = [
1,2,3,4,5
];
var data_fruit = [
"Avocado","Apple","Banana","Broccoli","Orange"
];
_addOption("my_select",data_val,data_fruit);
For get value or text of select option ( combobox )
var value_first = _getOption("my_select");
// For get text of value
var text_first = _getOption("my_select",true);
 
For add item to list
var data_list_1 = [
"Apple","Banana","Orange"
];
'list-group-item' is a class of css, so you can type the class inside that.
_addList("list_1","list-group-item",data_list_1);
A
B
For add item to table
var data_table = [
1,"A","B","C"
];
_addItemTable("table_val",data_table);
No
Firstname
Lastname
Email
0
A
B
C
For get latitude and longitude client
_getLocation(function(result){
var latitude = result.coords.latitude;
var longitude = result.coords.longitude;
});
For detection browser
let browser = _detectBrowser();
For create random string
var random_string = _randomStr();
or create random integer
var random_integer = _randomInt();
or with length
var random_integer2 = _randomInt(25);
For clean or filter value of array
var data_array = ['lorem','ipsum',null,'false'];
var new_array = _cleanArray(data_array,null,'false');
For open new frame
_newIframe("http://www.google.com",500,500);
or
_newIframe("http://www.google.com",500,500,"my_frame");
For print full page
_print();
or print with id of element
_print("print_me",600,400);
For smooth scroll
_scroll("display_load");
For load javascript file
_import(_myUrl()+"code/file.js",function(){
_writeLog(join());
});
For set cookie with key
_setCookie("my_app","gQuery");
For get cookie value by key
let c = _getCookie("my_app","gQuery");
For set title
_setTitle("My Title App");