As the title says; I want the content of an external file *(text,html,php etc.)* onto a div.
There is basically text in an external file, called: text\_1.txt or \*text\_1.html\* , and I want that text displayed within a div that is located on a homepage.

---

The perfect solution would be a pretty basic code to display text from a text or html file
by inserting it onto a div classed: *content*

Here I have illustrated the issue with basic code, use this as an example to write a solution.

Code in text\_1.html:

```
<p>Hello world.</p>

```

Code in index.html:

```
<!doctype html>
<html>
<head>
<title>Homepage</title>
</head>

<body>

<div class="content"></div>

</body>
</html>

```

This is as simple as I can put it.
I highly appreciate all the answers I receive, thank you.

PS here are some things you should avoid answering:

* Use iframes, or any other frame type solution.
* Make use of the onclick function within jquery etc.
* Use ineffective textfields to replace certain text.
* Make usage of an insertion code for virtual server or similar methods.