Here is an example:
<script type="text/javascript">
function OpenNote(noteid,t) {
var w1 = 550;
var h1 = 500;
var left = window.screenLeft + (screen.width / 2) - w1; //
var top = window.screenTop + (screen.height / 2) - h1; //
var newwindow = window.open('TransactionsNotes.aspx?i=<%=AccountTransactionId%>&u=<%=UserId%>&n=' + noteid + "&t=" + t, '_note_', 'top=' + top + ',left=' + left + ',width=' + w1 + ',height=' + h1 + ',location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no');
if (window.focus) { newwindow.focus() }
}
</script>
No comments:
Post a Comment