use window.onload:
you could also do this with PHP and place a value inside the sample_1 text box when loading the information from the database.Code:<script language="javascript"> window.onload = function(){ // Update the textbox showColorGrid2('menucolor', 'sample_1'); }; </script>




Reply With Quote