Open link in a new page

  • Thread starter Open link in a new page
  • Start date
O

Open link in a new page

I would like to create a link that opens in a new smaller window. can someone
give me some tips..thanks
 
T

Thomas Nelson

In code view.

Add the following before the head tag

<script language="javascript">
function openWindow() {
newWindow =
window.open("window2.html","subWind","status,menubar,height=400,width=300");
newWindow.focus( );
}
</script>

Then in your document create a link

<a href="javascript:eek:penWindow();">Go</a>

You can adjust width and height.. also if you search around on the internet
you will find all of the window.open parameters, size, position etc.
 
Top