JSFiddle - React, Tailwind, and code Playground

by amenadiel

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>");
        console.log(this.location.href)
        });
    </script>
    This is for testing according to the concept.
    
</div>
<a href="#" id="testing" >Open a popup window</a>

CSS

.btn {
  padding:5px;color:white;border:1px solid blue;background:blue
}

JavaScript

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

  var html = $("#modeltext").html();

    $(w.document.body).html(html);
});