Diposting pada tanggal 5 May 2011
Use the Dreamweaver behaviors panel to create small pop-up windows for ads or news

This behavior helps to create pop-up ads, small browser windows etc.
If you don't have Dreamweaver we have provided the code that you can
cut 'n' paste and use in your web page.
'Open
Browser Window' Behavior
This behavior allows you to open a browser window in any
size you specify. e.g.
Code for the Function: Cut and Paste Code:
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
Code for the Links: Cut and Paste Code:
<a href="javascript:;" onClick="MM_openBrWindow('/website_templates/business1/preview.htm','template','width=780,height=550')">Click Here </a>
Learn how to Open a New browser Window in Dreamweaver
- Open the behaviors panel by clicking on Windows/Behaviors.
- Select the text that you would like to link to the new browser
window.
- Click on the '+' symbol in
the behaviors panel.
- Click on 'Open Browser Window'
- 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.
- Click on OK
- 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.
Versi cetak