# How to renew codemirror page?

**URL:** <https://discuss.codemirror.net/t/how-to-renew-codemirror-page/2339>\
**Category:** Uncategorized\
**Created:** [March 18, 2020, 12:37pm UTC](https://discuss.codemirror.net/t/how-to-renew-codemirror-page/2339 "2020-03-18T12:37:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bugra96](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@bugra96](https://discuss.codemirror.net/u/bugra96)\
**Post date:** [March 18, 2020, 12:37pm UTC](https://discuss.codemirror.net/t/how-to-renew-codemirror-page/2339/1 "2020-03-18T12:37:57Z")

</div>

I can add a json to codemirror. But I want to renew page when changed the option of json file. How can i do that?

Here is my code;

var b=document.getElementById(“JsonText”);  
var myCodeMirror = CodeMirror(b, {  
lineNumbers: true,  
value: geojson3,  
mode: “application/json”  
});
