There is a div and a button, by pressing it is necessary to load the html page into this block:
html:
<div> <div id = "showDiv" width = "100px" height = "400px" > Отображение страницы </div> <button id = "buttonWinter">Зима</button> <button id = "buttonSpring">Весна</button> <button id = "buttonSummer">Лето</button> <button id = "buttonAutumn">Осень</button> </div> Js:
var buttonWinter = document.getElementById('buttonWinter'); buttonWinter.addEventListener('click',ShowWinter); function ShowWinter(event){ event.preventDefault(); $('#showDiv').on('../html/winter.html'); } Why not?