OnClick = "A java script"
Hi Guys,
I am very new to java and current I am creating a button to open a window as a pop up.
This window needs to load a asp page that I have already built.
So on the parent page I have created a button.
INPUT onclick=Somejava; type=button value=button
I am not sure how to set the onclick to run some scripts and then set the href before doing a window.open
The scripts it needs to run are as follows:
Code:
var urno=window.parent.parent.frames['patframe'].document.getElementById("BANNERRegistrationNo");
href="\\\\server\\folder$\\"+urno.value+"\\";
window.open
If anyone could give me a hint of where to start... Do I put this in a separate script? If so how do I call it... Or is there an easier option?