Your approach is fine, but the line:document.onload = showtoasterlogin();is not exactly correct. You may try:window.onload = showtoasterlogin;
Your approach is fine, but the line:document.onload = showtoasterlogin();is not exactly correct. You may try:window.onload = showtoasterlogin;