I'm looking for the right way to load a random html page (from a folder, which contains all the pages) into a div. This is what I've done for now:
<html>  
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> 
<script> 
$(function() {
$("#CONTENTS").load("contenuti/1.html"); 
}); 
</script>
</head>  
<body>
<div id="CONTENTS"></div>
</body>
</html>
I think the right way is to transform the "1.html" in "*.html" and then insert a random code. Could anyone help me?
 
     
     
    