algo así, estudialo:
Código Java:
Ver original<script>
window.onload = function()
{
var popArray
= new Array("pop1.html",
"pop2.html",
"pop3.html"); var limite_min = 0;
var limite_max = popArray.length;
var nPopup
= Math.
floor((Math.
random()*limite_max
)+limite_min
); window.open(popArray[nPopup],'p0', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=450,top=20,left=50');
}
</script>