toolman Posted November 14, 2014 Share Posted November 14, 2014 Hi, I have the following function, but told I need to run it automatically. How would I do this? <script> function replaceText() { var list = document.getElementsByTagName("UL")[22]; var list2 = list.getElementsByTagName("LI")[29]; list2.getElementsByTagName("LABEL")[0].innerHTML = "Car"; } </script> Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/292453-how-do-i-automatically-run-this-function/ Share on other sites More sharing options...
Ch0cu3r Posted November 14, 2014 Share Posted November 14, 2014 How would I do this? By using event listeners Could be more specific and tell us when you want that function to be called? Quote Link to comment https://forums.phpfreaks.com/topic/292453-how-do-i-automatically-run-this-function/#findComment-1496603 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.