hey,
Can anybody tell me that how can I render HTML inside the Div element?
HTML inside DIV Element
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dhaval PatelRank #1,023 · 1.9K reputationPosted Nov 11, 2011, 2:48 AM EST
are you want to render html inside div element
var req = new XMLHttpRequest();
req.open("GET", "page.html", false);
req.send(null);
var page = req.responseText;
document.getElementById("your div").innerHTML = page.
Scott LysleRank #49 · 31K reputationPosted Nov 10, 2011, 7:20 PM EST
Akash AhlawatRank #3,915 · 379 reputationPosted Nov 11, 2011, 1:59 AM EST
Akash AhlawatRank #3,915 · 379 reputationPosted Nov 17, 2011, 5:52 PM EST