Hi all
I am trying to call the following piece of javascript, it should simply open a new window and navigate to a particular page. Here is the javascript:
Here is the code that I use to call the javascript in the page_load event:
The code is not returning any errors, anyone suggest a solution. I have confirmed that other java script works on the machine, either in the codefile or in the html file.
Mike55.
I am trying to call the following piece of javascript, it should simply open a new window and navigate to a particular page. Here is the javascript:
Code:
function newWindow(){
var doc = document.forms[0];
window.open("http://localhost/testApp/LegalAgreement.aspx", "width=550, height=550, resizable=0, menubar=no, scrollbar=no, status=yes, left=0, top=0")
}
Here is the code that I use to call the javascript in the page_load event:
Code:
lBtnAgreement.Attributes.Add("onClick", "return newWindow();")
The code is not returning any errors, anyone suggest a solution. I have confirmed that other java script works on the machine, either in the codefile or in the html file.
Mike55.