Pop-up Windows

L

Lawrence Beyer

Here is a tip I saw:
"When users click on a hyperlink, a new Web page
loads into the browser window and replaces the
current page. But there is a way to make new pages
open in new windows, which is useful when you
don't want people to leave your site right away by
clicking any hyperlink.
To make a link open a page in a new browser
window, simply add this little bit of code in your
html between the <head> and </head> tags:

<BASEtarget="_blank">

The target="_blank" addition to the link tells the
browser to open a page in a new browser window."

Because I am an html dummy, I don't want to
experiment and screw things up. I couldn't find any
reference to this in my Frontpage books. Will
someone please show a before and after example?
 
T

Trevor L.

Lawrence said:
Here is a tip I saw:
"To make a link open a page in a new browser
window, simply add this little bit of code in your
html between the <head> and </head> tags:
<BASEtarget="_blank">
The target="_blank" addition to the link tells the
browser to open a page in a new browser window."

Will someone please show a before and after example?

I don't know about a template, but here is what the <head> should look like:
<head>
<title>"Main Page"</title> <!-- or whatever title you want -->

<meta name="Author" content="Main Page"> <!-- or whatever you want -->
<meta http-equiv="Content-Language" content="en-au"> <!-- or en-us, en-uk,
etc -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<base target="_blank">
</head>

Go to HTML code in FP and change it to read as above. (There can be lots of
other entries in <head>.)

Note the space between "base" and "target".
 

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

Top