How do I load an HTML page in a
using JavaScript?

后端 未结 15 2261
醉话见心
醉话见心 2020-11-22 08:29

I want home.html to load in

15条回答
  •  梦谈多话
    2020-11-22 09:00

    You can use the jQuery :

    $("#topBar").on("click",function(){
            $("#content").load("content.html");
    });
    

提交回复
热议问题