JSFiddle - React, Tailwind, and code Playground
working_myFuncinIframeAndAlsoWindowOpenSameFunction_v01-- index of (streZZZaming links:)
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'>
<pre>index of (streZZZaming links:)
</pre>
<font size="6">
<a rel='nofollow' target="_blank" href='http://tvm.okalo.com'>msnbc</a><br>
<a rel='nofollow' target="_blank" href='http://tva.okalo.com'>abclive</a><br>
<a rel='nofollow' target="_blank" href='http://tvw.okalo.com'>WGN</a><br>
<a rel='nofollow' target="_blank" href='http://tvcspan1.okalo.com'>C-SPAN1</a><br>
<a rel='nofollow' target="_blank" href='http://tvd.okalo.com'>Detroit WXYZ</a><br>
<a rel='nofollow' target="_blank" href='http://tvc.okalo.com'>CBS-N mydefault bitrate</a><br>
<a rel='nofollow' target="_blank" href='http://tvc120.okalo.com'>CBS-N 120 bitrate</a><br>
<a rel='nofollow' target="_blank" href='http://tvc360.okalo.com'>CBS-N 360 bitrate</a><br>
<a rel='nofollow' target="_blank" href='http://tvc700.okalo.com'>CBS-N 700k bitrate</a><br>
<a rel='nofollow' target="_blank" href='http://tvc1200.okalo.com'>CBS-N 1200k bitrate</a><br>
<a rel='nofollow' target="_blank" href='http://tvc1800.okalo.com'>CBS-N 1800k bitrate</a><br>
<a rel='nofollow' target="_blank" href='http://tvc2200.okalo.com'>CBS-N 2200k bitrate</a><br>
</font>
<!--googleon: index-->
<br>
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();
/* myStrURL=window.location.href; */
/* try{window.open(myStrURL , '' , ''); }catch(e){} */