Popup Browser
You can create a hyperlink that, when selected, opens the linked
page in a new browser. You can set the width and height so the new
window is standard
or
small.
How to Make a Hyperlink Open Another Browser Window
The JavaScript's shown below are a manual method to create a popup
browser. This feature is also available in Dreamweaver; see the
help menu within Dreamweaver for more details.
Small Size Window -
view example
1. Copy the JavaScript below and paste it into the head section
of the popup Web page: (note: if your page is in a template, add
the above JavaScript to an editable section , ie, after <title>Popup
Browser - How to Make Link Open Another Window</title>.)
<SCRIPT
TYPE="text/javascript">
<!--
window.focus();
//-->
</SCRIPT> |
2. Copy and paste this JavaScript in your HTML code:
<a
href="popup3.html"onClick="window.open('','popup','height=300,
width=250,scrollbars=no)" target="popup"','','width=250
height="300" (popup.shtml>This link</a> opens
a small size window. |
- Unless you create a special template appropriate for a page
this small, you should not apply a template to a page that opens
in a smaller window.
- So that an MHC banner does not appear at the top of this page,
the file extension for this page is .html instead of
.shtml.
- Height and width of this window can be changed in the HTML.
- A "close window" (as shown below) is optional.
3. Change the file name, link, text, height and width, to fit your
needs.
4. If want a scrollbar, replace "yes" where "no"
is shown above (#2).
Full Size Window - view
example
1. Copy the JavaScript below and paste it into the head section
of the popup Web page: (note: if your page is in a template, add
the above JavaScript to an editable section , ie, after <title>Popup
Browser - How to Make Link Open Another Window</title>.)
<SCRIPT
TYPE="text/javascript">
<!--
window.focus();
//-->
</SCRIPT> |
2. Copy and paste this JavaScript in your HTML code:
| <a
href="popup2.shtml" target="popup">This
link</a> opens a standard size window. |
3. Change the file name, link, and text to fit your needs.
|