3 ms·
forgive my density, but why would you make a web page trigger a toggle when it is loaded? shouldnt there be a button or some other user interaction to initiate
by bawana 8y ago
forgive my density, but why would you make a web page trigger a toggle when it is loaded? shouldnt there be a button or some other user interaction to initiate the state change?
Is it like loading a web page for the weather- so that when the page is loaded it goes and 'GETS' the latest weather info? Is it for convenience? So that all you have to do is go to a webpage and have it do stuff?
- nwsm 8y agoI think there was a homepage with a "toggle" button, the toggle button redirected to /toggle. site.com/toggle then got added to his favorites by safari. So it wasn't loading the site with the button, but the site that the button redirects to.
- wpearse 8y agoCorrect. Site now has a form and a button. /toggle now responds only to POSTs, and redirects back to /.
- bawana 8y agoi must zsound so obtuse. How does redirection happen? If there is a web page with a button, then what is /toggle? Is it another web page on his site? Isnt a button some code in html on the index.html page?