Sometimes we need to limit the size of the pop-up windows. Or you may have come across the pop-up windows with appointed size. But how can we limit the size of the pop-up windows? Of course, we can achieve it by the help with the JavaScript codes. However, we may be able to try another way to achieve it. Yes, we use the behaviors prosperities. The size-appointed windows are used for reminding the viewers of something. In normal case, it can be an ad, a reminder, or an image with a link. Now let us learn how to achieve this effect without the help of the codes. Follow me step by step.
![]() |
Step1
Open a document that you have saved. The original page is like the first image.
Step2
Click the <body> tag, beneath of the page. Then select the whole document. Like the following image.
|
Step3
Press [shift+ F4] key and open the behaviors inspector. Click the add behavior button. Select the open browser window command.
Step4
Select a window that will pop up in the open browser window dialog box. Click OK button and the behaviors inspector is changed and there is a onLoad event waiting to be function. Like the following image.
|
Step5
Save the document and press F12 to preview it in the explorer. When you load the original page, the other window will pop up in your appointed size. Like the following image.
|
Now, the process is finished. And compared with designing with codes, this technique is more comprehensible. You know the code design need carefulness, but using the behaviors can save us much trouble. Besides, remember some common keyboard shortcuts can help us a lot. It is necessary for us to master alterative way to achieve the same effect. Practice it more and be sure you master it absolutely.



this is a really useful article, as our the others on this website, however personally I would prefer to do this affect using bespoke javascript rather than the DW behaviors – but I guess each to their own!?