Embed HTML in a MS Word file
I'm trying to embed HTML into a MS Word file so that when this page is loaded via hyperlink from website it will follow the rules set in my CSS/javascript. I also want to embed this code into the file:
<body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);">开发者_如何转开发;
Would this be possible?
No, it isn't possible. Any code you wish to write in a Word document must be written in a format that Word supports (such as, last time I looked at it, Visual Basic for Applications), not as embedded HTML.
精彩评论