Javascript open.window in ASP.Net with querystring value

I'm trying to open a form as a popup from an ASP.Net page. When the button is clicked I run this code.
function OpenInfo()
{
window.open("info.aspx", "Employee", "width=650,height=600");
return false;
}
I want to open to a specific record, so I'm trying to use a querystring. info.aspx?id=empid, but I do not know how to get it to grab the empid from the form it is on. It's a hidden field right now. What is the best way to do this? When the form opens its available for edit, so once changes are made I'll need that id again to update the table.
dodgerfanAsked:
Who is Participating?
 
Daniel Van Der WerkenIndependent ConsultantCommented:
Could you use
document.getElementById( 'id_of_empid_element' );  ?

http://www.w3schools.com/jsref/met_doc_getelementbyid.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.