MDanz Posted June 19, 2010 Share Posted June 19, 2010 e.g. <table><tr><td onclick='ChgText()'>test</td></tr></table> now "test" are results from mysql. So i want all those results to load before onclick on the column can be enabled. This is because if i press onclick too quickly, the function doesn't capture certain information. any help? Quote Link to comment Share on other sites More sharing options...
MDanz Posted June 19, 2010 Author Share Posted June 19, 2010 if (document.readyState != "complete") {document.onclick = null; } else {} i tried this but it doesn't work. Quote Link to comment Share on other sites More sharing options...
haku Posted June 20, 2010 Share Posted June 20, 2010 window.onload = function() { // create your onClick function in here. Don't put it in your HTML like you are now. } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.