Code to make a page open in new window

G

Guest

Isn't there a simple code I can insert on my page to make a link open in a
new window and then that page would close and still have the last page
showing?
 
K

Kevin Spencer

Add a "target" attribute to the hyperlink. The value will be "_blank".
Example:

< a href="someotherpage.html" target="_blank">Some text</a>

This can be done visually using the Hyperlink Properties dialog box. Look
for the "Target Frame" button.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Expect the unaccepted.
 
G

Guest

An alternative to Kevin's suggestion is to use the free pop-up script
provided by JimCo Software called Spawn
(http://www.jimcosoftware.com/addins.aspx). With this approach you can
define the size and location of the window. The target="_blank" approach
opens the page in a new window, but it usually covers/hides the open window
behind it. HTH
 

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