Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Thanks for answering the question.
Posted
Updated 12-Aug-15 8:46am
v4

1 solution

you can use javascript window.showModalDialog function. It will show any web page in a modal window. i.e
JavaScript
var winSettings = "center:yes;resizable:no;dialogHeight:300px";
var myArgs = null;
window.showModalDialog("http://www.google.com", myArgs, winSettings);


Details please visit this link[^].

Note: Just remember that cross browser issue is there.

I found Major browsers like Safari, Firefox, IE it is working.
But it is not working in google Crome.
 
Share this answer
 
v4
Comments
_Amy 18-Feb-13 23:01pm    
It'll work for Chrome also. You need to enable popups. Here you go:
How to Allow Pop ups on Google Chrome[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900