Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html>

<title>race</title>

</head>
<body  >

 <a href="http://churchofbsd.blogspot.com/2020/06/stupid-web-tricks.html"> See the rest article on this on by BLOG</a>
  <p>
  
<FORM name="form1">
        winner is <INPUT type="text" name="mytext" value="TBD" size="3" >
</FORM>

<p>
1:
<img src="http://www.dnull.com/cgi-bin/race.gif" onLoad="winner(1);">dnull.com CGI
<p>
2:
<img src="http://www.9soslasdaxxaxx.com/race/race.gif" onLoad="winner(2);">Nonsense:
 deliberately a dead address that will not return quickly
<p>
3:
<img src="http://www.dnull.com/race/race.gif" onLoad="winner(3);">dnull.com
<p>
4:
<img src="http://johnsokol.github.io/race.gif" onLoad="winner(4);">github
<p>
5:
<img src="https://1.bp.blogspot.com/-FPy70gbze6Q/XuqkLLRbj6I/AAAAAAAAROg/rw2Ld1F1WO4sS2QsWXDDFTb_JgoLP35fgCLcBGAsYHQ/s1600/race.gif" onLoad="winner(5);">Blogspot
  <p>
    <hr>
  Problem is this one will cache in the browser and will always win. 
  

<p>
<hr>
<!-- iframe id="TVchanger" name="changer" src="http://www.dnull.com" marginwidth="0" marginheight="0" width="800" frameborder="0" height="600" scrolling="no"></iframe>&nbsp;</p !-->
<p>
  
  <div id="content"> </div>


              
            
!

CSS

              
                
              
            
!

JS

              
                

var outs = " ";
var cn1=0;
var channel=0;
var maxchannel=10;

function winner(cnl) {

     if(channel === 0){
        channel = cnl;
     document.form1.mytext.value = channel;
     } //document.getElementById('TVchanger').src= "http://www.dnull.com/race/" + channel + ".html"
       
     //   document.getElementById('TVchanger').value= "http://www.dnull.com/race/" + channel + ".html"

  
 outs = outs + " : " + cnl;
         document.getElementById("content").innerHTML = "The winner was " + outs ;
   //  }
}
              
            
!
999px

Console