How to change the html document on the page without a frame?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
Tag allows you to change the html document when clicking the link directly into the current page. One of the examples implemented here. Is it possible to do the same without using frames?
by | 4 views

3 Answers

0 like 0 dislike
by
0 like 0 dislike
Use ajax with a simple example in jquery (api.jquery.com/jQuery.Ajax/):
$.get("blabla.html").then(function(response) { $(".content").html(response); });


The page will load blabl.html and all its contents will be inserted in the element on the page with the class .content
by
0 like 0 dislike
by

Related questions

0 like 0 dislike
4 answers
asked Mar 22, 2019 by pel0tkin
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,014 users