Hi I have a form that basically has 2 submission buttons on the page because I have a movable div kinda thing happening. The problem with the form is that for some reason I need to hit “Submit” twice for the variables to kick in. I noticed if I hit submit and I refresh the page right after, the variables kick in I guess and the new values pop up.
Basically I want to try to integrate this in my script but it submits the form repeatedly..
Thanks for checking this post out.
[CODE]window.onload=
function() {
var sels = document.getElementsByTagName(‘select’);
CngColor(sels[0]);
CngColor2(sels[1]);
CngColor3(sels[2]);
CngColor4(sels[3]);
var drg = document.getElementsByTagName(‘div’);
if(readCookie(‘wd’)) {
drg[0].style.visibility=readCookie(‘wd’);
}
};
[COLOR=”Red”]document.getElementById(‘form1’).submit();[/COLOR] submits repeatedly
</script>