We have a powershell script that creates a local html file and the owner of the this script wants to add a button (or something of similar functionality) to the bottom of the html page. When this button is clicked he wants to copy the html document into a new directory.
I created the button, but now I am not sure what I should put in the onclick part of the button.
I don’t think IE will recognize powershell commands, and I could use javascript, but putting the javascript into the powershell script seems odd to me.
Any pointers?
Odd or not, that is the way to go. Just have the PS that creates the HTML document also write a javascript onClick event handler in the document as well.