JSFiddle - React, Tailwind, and code Playground

reader.open()_v02 v024 last stable version is 024

by dledle2

HTML

<!--googleoff: index-->
<!-- https://stackoverflow.com/questions/3207211/is-there-a-way-to-make-robots-ignore-certain-text

working_myFuncinIframeAndAlsoWindowOpenSameFunction_v01
//  -->
<meta name='robots' content='nofollow'>
<meta name='robots' content='disallow'>
<meta name='robots' content='noindex'>
<meta name='robots' content='noindex,disallow,nofollow'>


<div id="myPageContentDIV" class="myPageContentClass">
<!--googleoff: index-->
<meta name='robots' content='nofollow'>
<meta name='robots' content='disallow'>
<meta name='robots' content='noindex'>
<meta name='robots' content='noindex,disallow,nofollow'>
<!-- <pre>index of (streZZZaming links:)
</pre>  // -->
<font size="6">


<a href="javascript:setTimeout(function(){document.body.className=document.body.className.replace(/modal-open/,'');document.querySelectorAll('#memberModal')[0].style.display='none';document.querySelectorAll('.in.fade.modal-backdrop')[0].style.display='none';reader.open()},0020);void(0);">reader.open()_v02</a>

<form action="">
<input type=text value="javascript:setTimeout(function(){document.body.className=document.body.className.replace(/modal-open/,'');document.querySelectorAll('#memberModal')[0].style.display='none';document.querySelectorAll('.in.fade.modal-backdrop')[0].style.display='none';reader.open()},0020);void(0);">
</form>

<script>
function iosCopyToClipboard(el) {
    var oldContentEditable = el.contentEditable,
        oldReadOnly = el.readOnly,
        range = document.createRange();

    el.contentEditable = true;
    el.readOnly = false;
    range.selectNodeContents(el);

    var s = window.getSelection();
    s.removeAllRanges();
    s.addRange(range);

    el.setSelectionRange(0, 999999); /* A big number, to cover anything that could be inside the element. */

    el.contentEditable = oldContentEditable;
    el.readOnly = oldReadOnly;

    document.execCommand('copy');
}
</script>


<script>
/*
var myElementWhoseValueToCopy...

JavaScript

function myFuncinIframeAndAlsoWindowOpenSameFunction() {

if (typeof window.boolWindowOpenedSuccessfullyAlready == 'undefined')
{ window.boolWindowOpenedSuccessfullyAlready=false; }

console.log(window.boolWindowOpenedSuccessfullyAlready);
if (window.boolWindowOpenedSuccessfullyAlready ===false) {
   try {
      if(window.self !== window.top){
         if (window.open(window.location.href)){window.boolWindowOpenedSuccessfullyAlready=true;}
         /*   */ 
      }
   }catch(e){}
}
console.log(window.boolWindowOpenedSuccessfullyAlready);
   /* below end bracket: end of function: myFuncinIframeAndAlsoWindowOpenSameFunction */
}


myFuncinIframeAndAlsoWindowOpenSameFunction();



function iosCopyToClipboard(el) {
    var oldContentEditable = el.contentEditable,
        oldReadOnly = el.readOnly,
        range = document.createRange();

    el.contentEditable = true;
    el.readOnly = false;
    range.selectNodeContents(el);

    var s = window.getSelection();
    s.removeAllRanges();
    s.addRange(range);

    el.setSelectionRange(0, 999999); /* A big number, to cover anything that could be inside the element. */

    el.contentEditable = oldContentEditable;
    el.readOnly = oldReadOnly;

    document.execCommand('copy');
}




/* 

var myElementWhoseValueToCopy =document.querySelectorAll("input")[0];
iosCopyToClipboard( myElementWhoseValueToCopy );
*/