<form id="frm1" action="" method="post"><input style="display: none;" id="linkfordemo" onclick="this.select();" name="link" onfocus="this.select();" style="direction:ltr;text-align:left;" type="text">
<button class="btn" onclick="document.getElementById('linkfordemo').value='http:\/\/makuonline.ir\/editor\/en.php#'+escape(codeMirror.getValue())+''">create demo & cod link</button>
<button class="btn" onclick="document.getElementById('linkfordemo').value='http:\/\/makuonline.ir\/editor\/demo.html#'+escape(codeMirror.getValue())+''">create demo link</button>
<button class="btn" onclick="document.getElementById('linkfordemo').value='http:\/\/makuonline.ir\/editor\/cod.html#'+escape(codeMirror.getValue())+''">create code link</button>
</form>