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

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

I want home.html to load in

15条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 09:19

    This is usually needed when you want to include header.php or whatever page.

    In Java it's easy especially if you have HTML page and don't want to use php include function but at all you should write php function and add it as Java function in script tag.

    In this case you should write it without function followed by name Just. Script rage the function word and start the include header.php I.e convert the php include function to Java function in script tag and place all your content in that included file.

提交回复
热议问题