I'm trying to reload the contents of div
tag on button-click. I can do it with using:
function reload_div()
{
document.getElementById('div_id').innerHTML = 'blah blah blah';
}
but the problem is, that div
tag contains thousands of lines and when I try to acomplish the div-reloading with previous function, the browser will be freezed. I was searching for a solution on stackoverflow but all what I found is with using ajax or jquery and I haven't used those library before. So, can I reload the div contents using javascript and html only? Thanks.