You can return the orphans property like this −
var res = object.style.orphans
Set the orphans property like this −
object.style.orphans = 'number|initial|inherit'
The following are the property values shown above −