From inside a content page you might want to alter the DOM tree when your master page layout prevents you to achieve a peculiar layout effect (for instance when doing a full-screen inline popup). But whenever you manipulate the DOM with javascript, be sure to keep in mind data and buttons which are not descendants of the form (in the DOM tree) will not be posted back (buttons won't trigger anything).
So make sure you're always attaching your html elements somewhere under the form object in the DOM tree.
Published under: · · · ·