This saves a page you're editing in SharePoint:

<a href="javascript:ChangeLayoutMode(null,true);">Save</a>

What are the names of the two parameters to this method? More important, what do they change about the method's behavior?

If you can, please cite a source.

1 Answer 1


This method actually calls _MSOLayout_ChangeLayoutMode declared in IE55UP.js. Signature for the method:

function _MSOLayout_ChangeLayoutMode(bPersonalView, bExitDesignMode) {...}

So, the first bool parameter indicates if you want to switch to personal view, and the second indicates that you want to exit from design mode.
Usually, this method used like follows:

-Switch to edit mode(none pesonal view):


-Exit from edit mode:


Take a look at this method in IE55UP.debug.js for better understanding.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.