I just tried to create pop-up window but its parent window get active while pop-up is still open , in Chome.
My code is as blow
<script language="javascript" type="text/javascript">
function showModalWindow() {
window.showModalDialog('URL, "Sample.jpg", "resizable: yes");
}
</script>
how to make this code browser specific.
window.showModalDialog is part part of standard specification yet which is now been used in HTML5. So it has been ignored in chrome. Use jQuery dialog which has the mask and many other features. Go through this link for the reference.