Page 163 - DCAP408_WEB_PROGRAMMING
P. 163
Unit 9: Child and Pop Up Windows
‘Open Browser Window’ Behavior Notes
This behavior allows you to open a browser window in any size you specify. E.g. Click here to
see a sample.
Code for the Function: Cut ‘n’ Paste Code
<script language=”JavaScript”>
<!—
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//—>
</script>
Code for the Links: Cut ‘n’ Paste Code
<a href=”javascript:;” onClick=”MM_openBrWindow(‘/website_templates/business1/
preview.htm’,’template’,’width=780,height=550')”>Click Here </a>
The above code is taken from Macromedia Dreamweaver 4.0
Learn how to Open a New browser Window in Dreamweaver
1. Open the behaviors panel by clicking on Windows/Behaviors.
2. Select the text that you would like to link to the new browser window.
3. Click on the ‘+’ symbol in the behaviors panel.
4. Click on ‘Open Browser Window’
5. In the ‘Open browser Window’ pop-up-window select the URL and specify the width and
the height of the window. You can also choose if you want a status bar or a scroll bar etc.
6. Click on OK
7. In the behaviors panel under the Events Column you can choose onClick if you want the
browser window to open only when the link is clicked.
Self Assessment
Fill in the blanks:
13. A window that suddenly appears (pops up) when you select an option with a mouse or
press a special function key is called a ......................... window.
14. A special kind of pop-up window is a ......................... menu, which appears just below the
item you selected, as if you had pulled it down.
15. A popup window is a ......................... window that is smaller than standard windows and
without some of the standard features such as tool bars or status bars.
9.5 Summary
xWindow helps to maintain child (popup) windows, especially when you need multiple
child windows and each window needs different features.
LOVELY PROFESSIONAL UNIVERSITY 157