June 10, 201016 yr I am trying to make a one click file that will release and renew the DHCP on my router. I was thinking using a .bat file; I am stuck. I have http://192.168.0.1/index.phpdelayjavascript:void(document.getElementsByName('LOGIN_USER')[0].value='admin'); javascript:document.getElementsByName('login')[0].click(); delayhttp://192.168.0.1/st_device.phpdelayjavascript:document.getElementsByName('DHCP Release')[0].click();delayjavascript:document.getElementsByName('DHCP Renew')[0].click(); Each of these work separately pasting into the address bar; I do not know how to make them work together. I also need to input some delays to give the pages time to load. If a .bat file cannot work I could usevar script=document.createElement('script'); script.src='*.js'; document.getElementsByTagName('head')[0].appendChild(script); as a bookmark to call a .js file. Any help would be appreciated. Never mind I just bought a new router.
Create an account or sign in to comment