Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Passing parameters to window.open in layout.

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.

Not what you were looking for? View more on this topic or Ask a question