This piece of code will open a pop up if it is not opened. If the pop up is already opened then it will refresh the content of the pop up. This code will work both in IE and Firefox.
var msgWindow = null; function showFileView(iId) { msgWindow = window.open("FileContentView.aspx?fileid="+iId, "tinyWindow", 'status=1, resizable=1, scrollbars=0, width=650,height=480'); msgWindow.focus(); if(!msgWindow.closed) { if(navigator.appName == "Netscape") msgWindow.location.refresh; else msgWindow.location.reload(true); msgWindow.focus(); } }
|
No responses found. Be the first to respond and make money from revenue sharing program.
|