Binding.document property (JavaScript API for Office v1.0)

Get the Document object associated with the binding.

Last modified: June 12, 2014

var bindingDoc = bindingObj.document;

Office.context.document.bindings.getByIdAsync("myBinding", function (asyncResult) {
    write(asyncResult.value.document.url);
});

// Function that writes to a div with id='message' on the page.
function write(message){
    document.getElementById('message').innerText += message; 
}

Supported clients

Excel 2013, Excel 2013 RT, Excel Online, Word 2013, Word 2013 RT

Library

Office.js

Namespace

Office

Show:
© 2015 Microsoft