I need to open a popup, after checking a condition in javascript. I was trying to customize the popup window.
I used
function fun()
{
if() {
window.open('name.jsp','Popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=420,height=400,left=430,top=23');
}
else {
}
}
But I needed a pop like what I have given below.
Is it possible in javascript.
image 1: what I am getting
image 2: what is needed.

+1 for all the suggestions to use a modal instead of a popup winodw (which can’t be styled how you want).
Modals are the more modern and user friendly way to go. This post: Simple modal div in jQuery? has quite a few links in it that could get you started.
With a little css and an icon, you could get your modal to look exactly like your image 2.