Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Window - Creating a Simple Window

jQuery EasyUI Window - Creating a Simple Window

Creating a window is very simple; we create a DIV tag:



    Some Content.

Now run the test page and you will see a window displayed on your screen. We do not need to write any javascript code.

If you want to create a hidden window, remember to set the 'closed' property to the value 'true'; you can call the 'open' method to open the window:



    Some Content.


$('#win').window('open');

As a final example, we create a login window:



    
        

Name:

        

Pass:

        
            Ok             Cancel         
    

Download the jQuery EasyUI example

jeasyui-win-win1.zip