Hi
Not sure if this is a javascript or ASP problem. The code in the head of the ASP page is
<script language="javascript">
function newWindow(link)
{
link = window.open(link,'new', 'width=600, height=500, scrollbars=yes, resizable=no, top=35, left=300')
}
</script>
The code for the link is below and its all on one line. The RefNo variable comes from an SQL database.
Response.Write "<td width='41' align='center' height='32' valign='middle'><b><a href='RefNo/RefNo.asp?RefNo=" & RefNo & "' onClick='javascript:newWindow(RefNo/RefNo.asp); return false;'><img alt='More...' src='images/MAGNI-GLASS.gif' border='0' width='15' height='16'></a></b></td>"
The page is displaying and working OK, I get the link, image and the querystring is passed to the new window and the resulting info is correct. the only problem is that the new window doesn't popup. I think it maybe the double and single quotes in the wrong place or something easy but I can't see it.
The original line is below and that didn't work either.
<a href='RefNo/RefNo.asp?RefNo=" & RefNo & "' onClick='javascript:newWindow('RefNo/RefNo.asp?RefNo=" & RefNo & "','880451',''); return false;'>
The original line from the static table is below and this works fine
<a href="RefNo/ICR27265.htm" onClick="javascript:newWindow('RefNo/ICR27265.htm','880451',''); return false;">
Thanks
Ian