Open link in a new page

G

Guest

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

Guest

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:blush: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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top