I have the ff as part of my javascript and I want the popup window to center in the client’s window. Please help. I highlighted the part where I need help.
if (counter == 0)
{
var myRes = “<html><head>n”;
myRes += “<title>Popup Window</title>n”;
myRes += “</head><body>n”;
myRes += “<div style=’text-align:center’>n”;
myRes += “<p>Search character ‘<b>” + searchChar + “</b>’ not found in text string!</p>n”;
myRes += “<input type=’button’ value=’Close Window’ onclick=’window.close()’>n”;
myRes += “</div>n”;
myRes += “</body>n</html>”;
[COLOR=”DarkRed”]var popup = window.open(“”, “Popup”, “top=10,left=300,width=300,height=100”);[/COLOR]
popup.focus();
popup.document.write(myRes);
popup.document.close();