Revision: 38104
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 25, 2010 06:06 by doorhammer
Initial Code
window.onload = function(){ document.getElementById("randomButton").addEventListener('click', selectRandomOption, false); } function selectRandomOption() { var box = document.getElementById('s_box'); box.selectedIndex=box.length-1; box.selectedIndex=((Math.random()*box.length)-1); };
Initial URL
Initial Description
Initial Title
random selector
Initial Tags
javascript
Initial Language
JavaScript