document.body.setAttribute('align', 'center') works in Chrome and Edge, not Firefox.
I have tried every variation and alternative I can think of to center a whole page or document (loaded in an iFrame) that is generated by Javascript. Does anyone have any other suggestions?
Thanks!
Edit for clarification: I have a dynamically-produced select menu, instructions and a pic that I'd like to wrap in javascript <center> tags. So much so, I even tried wrapping an external script in the old, deprecated html tag.