Open window and pass value?

  • Thread starter Thread starter KavvY
  • Start date Start date
K

KavvY

Hi,

I need to open a pop up window from my main aspx page while passing it a
value, but i've got stuck on the first hurdle which is how to open a window
at all!

Any help appreciated,

Thanks
Rich.
 
Rich,

You would call the open method on the window class exposed in JavaScript
in the browser. If you want to pass a value, you could get the DOM object
model from the new window, and set the variable through that (or set a value
on an element that the script inside the window would pick up).

Hope this helps.
 
Back
Top