Aspnet_9
asked on
How to open a modal window using Javascript
Hi
I am opening a new window using window.open() in JavaScript.
How can i make this window Modal?
Right now I am using
var OpenWindow = function (URL) {
window.open(URL, null, "height=680,width=980,stat us=no,tool bar=no,men ubar=no,lo cation=no" );
}
Thanks
I am opening a new window using window.open() in JavaScript.
How can i make this window Modal?
Right now I am using
var OpenWindow = function (URL) {
window.open(URL, null, "height=680,width=980,stat
}
Thanks
ASKER
Is jquery the only way, can we do it with simple JavaScript?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok
simple one with jQuery :
http://xaviesteve.com/3054/simplest-modal-window-less-than-1kb-jquery-plugin/
else use jQuery UI one : http://jqueryui.com/dialog/
with modal set to true : http://api.jqueryui.com/dialog/#option-modal