and in that new window names should comes like 1.Name: 2.DOB: 3.AGE: 4.ADD: 5.Phn: 5.Country: 6.State: 7.City: along with are u sure? Ok button and cancel button on the very same page.
function callall() { var Name = document.getElementById("TextBox1").value; var DOB = document.getElementById("TextBox2").value; var Add = document.getElementById("TextBox3").value; var phn = document.getElementById("TextBox4").value; var ddlCountry = document.getElementById("DropDownList1"); var Country = ddlCountry.options[ddlCountry.selectedIndex].text; var ddlState = document.getElementById("DropDownList2"); var State = ddlState.options[ddlState.selectedIndex].text; var ddlCity = document.getElementById("DropDownList3"); var City = ddlCity.options[ddlCity.selectedIndex].text; var msg = "Name: " + Name + ",DOB: " + DOB + ",Add: " + Add + ", phno: " + phn + ",Country: " + Country + ",State: " + State + ",City: " + City; return confirm(msg); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)