简体   繁体   中英

Editable HTML within HTML

For my job, I'm creating a webpage that has Static HTML templates embedded inside it. The embedded Static HTML page can have parts of the HTML replaced. I'm running into issues because for the parent webpage I only have access to the body and I'm not allowed to upload new HTML documents or any documents on the same domain. I understand that if I could, I would be able to do this all through I-Frames.

What I'm getting at is basically how do I edit Static HTML files that are embedded in Iframes(I own this domain) but within a webpage that I only have access to the body?

Use JavaScript and Style tags within the body to change the CSS and call other functions to modify HTML.

https://www.w3schools.com/jsref/prop_html_innerhtml.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM