seite-beim-betretten-noch-mal-laden.php


Quell Code


<!doctype html>
<html>
    <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

        <style>
body{
  margin:0;
  padding:0;
}


nav{
  position:fixed;
  width:100%;
  background:black;
  height:31px;
  text-align:center;
  color:white;
  text-align:center;
  top:0;
}
div{
margin:50px;
height:50vh;
width:50vw;
border:1px solid black;
box-shadow:2px 6px 1px 1px black;
overflow:hidden;
}
 </style>
    </head>
  <body>
      <nav>Diese Seite wird in 5 Sekunden nochmal nachgeladen mit Ajax</nav>
 <div id="iframe">jjjj</div>
<script>
 setTimeout(function(){
 
    $.ajax({
             type: 'GET',
              url: '/loesungen/seite-beim-betretten-noch-mal-laden.php',
             success: function(data){ 
            
                document.getElementById('iframe').innerHTML='<textarea style="width:100%;height:50vh;overflow:auto">'+data+'</textarea>';
        
             }
    });
 },5000)


</script>
    </body>
</html>


Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0