OK.
With all your help.
I have successfully opened a pop up window from the main
JSP and show 2 buttons for save and cancel.
Now the problem is :
previously the code was :
var str = 'Your query has not been saved. Do you want to save the query?\n' +'\n\tPress "OK" to save the query.' +
'\n\tPress "Cancel" to run the query without saving it.';
if (confirm(str)) {
return saveQuery(executeAfterSave);
}
Now I need to perform the same thing but when save button is clicked in the popup window,i.e on click of save,tehh method in .js file has to be called and the popup should close.
The above code is in .js file.
Please help.