---
title: "Remote Content JavaScript Modal"
description: "How to create a quick JavaScript modal using a remote content."
source: https://jsuites.net/docs/v4/modal/external-content
---

{.white}
> A new version of the jSuites **JavaScript Modal** external content page is available.
> <br><br>
> [JavaScript Modal External Content](/docs/modal/external-content){.button .main target="_top"}



The follow example shows how to create a new modal window from an external content.

```html
<html>
<script src="https://jsuites.net/v4/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" />

<div id='modal' title='Remote content'></div>

<input type='button' value='Click here to open the modal' class='plain' id="btn">

<script>
var external = jSuites.modal(document.getElementById('modal'), {
    src: '/v4/test.html',
    width: '600px',
    height: '480px',
    closed: true
});

btn.addEventListener('click', function() {
    external.open()
})
</script>
</html>
```
