 |
 |
Web Linking Question?
|
 |
|
 |
|
Junior Member
Join Date: Jan 2001
Location: Upstairs. Apt 2
Status:
Offline
|
|
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
|
|
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!
------------------
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jan 2001
Location: Upstairs. Apt 2
Status:
Offline
|
|
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
|
|
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!
------------------
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jan 2001
Location: Upstairs. Apt 2
Status:
Offline
|
|
madra -
thanks - just what I needed!
|
|
111,111,111 x 111,111,111 =
12,345,678,987,654,321
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|