Opening a fixed browser window
Opening a fixed browser window from a link or image is very useful option to give more information about the image or a given text. Here I will be using dreamweaver editor to create fixed browser window. If you do not have dreamweaver copy and paste the code in the body tag and head tag as shown below and change the example “url” to yours.
- Select the text or the image for which you have to create link to open in new fixed browser window and hyperlink to “javascript:void(null)”. You can do this by just adding “javascript:void(null)” link in the editor properties after selecting a text or a image.
- Click on “behaviors” option, then click “+” tab and now select open browser window.
- In the popup window give the “url” of the new window to open, define the size of the window and other options and click ok to update your information.
- By doing so dreamweaver editor has created code in head tag and body tag.
- In the body tag the hyperlink shows as below:
<a href=”javascript:void(null)” onclick=”MM_openBrWindow(‘http://www.smworldnet.com’,'smworldnet’,'width=700,height=500′)”>open new browser window</a>
- In the head tag following code is added:
<script language=”JavaScript” type=”text/JavaScript”>
<!–
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//–>
</script>
- You are ready to go. Save the page with “html” or “htm” extension and open in a browser and check the link
Disadvantage
- Link does not open if user has disabled the JavaScript




