I was curious if there was a way in JavaScript to navigate to a page and if the credentials page is pulled up, it will automatically fill in the username and password field (which is known information), and then navigate to the originally desired link.

The idea behind this is actually an ethernet power controller and I want the user control panel to be able to power cycle a particular device. The action to power cycle the device is simply an HTML link, however, if the device is not 'logged in', I don't want the user to have to type in the username and password, essentially everything happening in the background.

Thanks in advance.