JSFiddle - React, Tailwind, and code Playground

HTML

<div id="modeltext" style="display:none">
    <p id="linker" ></p>
    <script type="text/javascript">
        var news = "http://google.com";
        jQuery(document).ready(function() {
        jQuery('#linker').html("<a href="+news+">"+news+"</a>");
        });
    </script>
    This is for testing according to the concept.
    
</div>
<a href="#" id="testing" >Open a popup window</a>

JavaScript

jQuery('#testing').click(function() {
    
  var w = window.open($('', "", "width=600, height=400, scrollbars=yes"));
        //alert(ICJX_JXPath);

        
        var $w = $(w.document.body);
     
        $w.html($('#modalText').html());
});