Monday

focus popup window

it can be done by this line : if (window.focus) { newwindow.focus() }
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:

imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...