Skip to Content
0
Sep 26, 2008 at 08:24 AM

Passing parameters to window.open in layout.

43 Views

Hi All,

How to pass a variable as a parameter value to window.open method..

f u n c t i o n   call_window()

{
var myname   =  d o c u m e  nt  . ge t E le m e n tB y I d ('FName').value ;

 wi n d o w . o  p e n ( "../z_bizcard_newui/preview.htm?name=myname ", "WinE", "width=400,height=100,toolbar=no,resizable=no");
}

But it shows up as 'myname' in popup window instead of the value of the field....

Thanks,

Anubhav.