cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters to window.open in layout.

former_member184111
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184111
Active Contributor
0 Kudos

Sorry for the post..got the solution..

Thanks.