mode

Return the current mode

 

let currentMode= document.mode;

 

return:

0 = find mode (not supported)

1 = ok mode

2 = update mode

3 = add mode

 

For changing the mode use document.setmode(String);