Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Web Linking Question?

Web Linking Question?
Thread Tools
Junior Member
Join Date: Jan 2001
Location: Upstairs. Apt 2
Status: Offline
Reply With Quote
Mar 19, 2001, 06:37 AM
 
I would like to know why some links that I click open a new window, while others simply keep the same window so you lose the page you were on.

Example: links clicked in the MACNN forum will open a new window, while links clicked, on say, Google.com will open in the present window.

Any help would be much appreciated!
111,111,111 x 111,111,111 =
12,345,678,987,654,321
     
madra
Guest
Status:
Reply With Quote
Mar 19, 2001, 05:53 PM
 
it's called targetting. by default any link will open in the same window but sometimes [eg with frames where one frame is a navigation bar] you want a link in one frame to load a page in another frame. you do this by putting a 'target=' attribute in the <a> tag.

so a normal link might look like so...

<a href='someotherpage.html'> click here</a>

and if you wanted the link to open in one of your frames which you've called 'main' you'd use...

<a href='someotherpage.html' target='main'> click here</a>

to make a link which opens a new window use...

<a href='someotherpage.html' target='_blank'> click here</a>

HTML coding off the top of my head so dinnae flame me if i missed out sommit!


------------------
     
homuss  (op)
Junior Member
Join Date: Jan 2001
Location: Upstairs. Apt 2
Status: Offline
Reply With Quote
Mar 19, 2001, 08:00 PM
 
madra -

Is there an easy way to get Dreamweaver to do this for me...

I have almost 100 links and adding more daily - so i'd love it if anyone new if DW could do this for me!
111,111,111 x 111,111,111 =
12,345,678,987,654,321
     
madra
Guest
Status:
Reply With Quote
Mar 20, 2001, 06:47 PM
 
if you mean opening a new window when a link is clicked it's a piece of piss in dreamweaver....

1. select the text or graphic [on your HTML page] which you are goin to make into a link and press F3 to bring up the properties window.

2. fill in the name of the page you're linking to in the 'link' box [or click in the link box and use the wee target or folder item beside the box to locate the file you're linking to

3. once you've filled in the link box and hit return the 'target' box [which had been greyed out] becomes active. select "_blank" from the wee pop-up and hey presto! that link will open in a new window.

then check the source window and see if yer oul uncle madra was right!



------------------
     
homuss  (op)
Junior Member
Join Date: Jan 2001
Location: Upstairs. Apt 2
Status: Offline
Reply With Quote
Mar 20, 2001, 08:29 PM
 
madra -

thanks - just what I needed!
111,111,111 x 111,111,111 =
12,345,678,987,654,321
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:04 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2