I use
to create a popup menu, which when users click items on the popup menu, I would execute a javascript function,
Code:
oPopup.document.body.innerHTML = "<a href='#' onclick='javascript:OpenWin(rptName);'>Test Item</a>";
to do a window.open of a spreadsheet.
But it kept giving my object expected error, and I suspect it has something to do with 'OpenWin' function?!
The OpenWin looks like this:
Code:
function openwin(rptName)
{
var win= window.open(RptName,null,"width=1000, height=550,top=10,left=10,toolbar=1, status=1, resizable=1, location=1");
}
Can someone help, please?