>I want to open a new window using Java Script but I want that window to open up passing asp values to the url. ex. window.open(mypage.asp)
>
>In the url I would like to see the variables for name, city etc.
>
>mypage.asp?city=TEST&name=thestore
Store the values in hidden fields which you can access using the DOM from your client side script.
In the below example, two values are stored to memory variables based on the values of two hidden fields (txtTestPK.value and txtTestType.value) where commitchanges is the name of the form:
function cancelbtn_onclick() {
var nTest = document.commitchanges.txtTestPK.value;
var cType = document.commitchanges.txtTestType.value;
window.open("assetclassbytest_" + cType + ".asp?TestPK=" +
nTest, target="_top");
}
Hope this helps,
-JT
Jeff Trockman, MCP