onClick not working - RESOLVED

onClick not working - RESOLVED

I have a display with tabs and I want to execute a script but still be connected to the tabs so I can update the progress bars. The only way I can figure out how to do that is to open a new window for the script and execute the script from there.

I have an onclick in another tab that works great. I cannot get it to work in this tab. What am I doing wrong? I have spent over an hour going over this and comparing both tabs. I cannot see what I am doing wrong.

Here is the code:

<script type="text/javascript">
function newwindow() {
     alert("Hi");
winhandle = window.open("localhost/install/install.php", "Install", "width=200, height=200");
winhandle.document.write("<br>Starting the installtion process<br><br>");
     $("#tabs").tabs( "option", "disabled", [ 0, 1, 3, 4, 5 ] );
     $("#tabs").tabs("option", "active", 2);
$( "#stepprogress" ).progressbar({
  value: 0
});
$( "#totalprogress" ).progressbar({
  value: 10
});
}
</script>
<input type="button" value="Continue" onClick="newwindow()"></fieldset>
</form>


I have the alert in there to see if I am even getting to the function. I am not.

Is there a better of doing what I am trying to do? What am I doing wrong with the above code?

I am sure it is probably something very simple. Having looked at it so many times I probably will never see it.

Thanks for all help.

Mike