hi, I have this function that creates a popup based on the title, image, width and height that I define in the link
var ImgWin=” ”
function imgwin(Imgn,w,h,imgTitle){
if(ImgWin.open) {ImgWin.close()}
winprops=”width=”+w+”,height=”+h+”,crollbars=no,resizable=no,top=0,left=0″
ImgWin=window.open(“”,”winimg”,config=winprops);
ImgWin.document.writeln(‘<html><head><title>’+imgTitle+'</title><style>body{margin:3px;}</style>’)
ImgWin.document.write(“<img src=”+Imgn+”>”)
ImgWin.document.close()
ImgWin.focus()
}
onClick=”imgWin(‘image.jpg’,232,502,’title’);return false;”>
how can I make the popup centered? I´ve tried but can´t do it and i need this code very much!! please help, thanks