Open link in a new page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to create a link that opens in a new smaller window. can someone
give me some tips..thanks
 
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:openWindow();">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.
 
Back
Top