I tried to retrieve the blogger feeds code without using <script src = I tried document.write but when import is done the original page content is deleted Is there a way to import when pressing a button without using <script
<button onclick="myFunction()">Click me</button>
<h1>Test Content</h1>
<script>
function myFunction() {
// The problem here is deleting the text content With document
// And I tried Use document.createElement
// Is there any other way to call and run the file codes ?
document.open();
document.write('<script type="text/javascript" src="https://photoshop4all.com/feeds/posts/default?max-results=5&alt=json-in-script&callback=URLAGAIN"><\/script>');
document.close();
}
function URLAGAIN(json) {
document.write(json.feed.entry[0].link[1].href);
}
</script>