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! 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? 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
Archived
This topic is now archived and is closed to further replies.