 | |  |
 |

nznan
Novice
Mar 8, 2003, 10:49 PM
Post #1 of 3
(1289 views)
Shortcut
|
|
link to open in a new page
|
Can't Post
|
|
I have an area on my site(fsbo)whereby users can include a link to a property description page that is hosted elsewhere when they add their property details. That works fine. How do I configure that site (link)to open in a new browser window? Dumb question perhaps but any help would be appreciated as I am catering to newbies of which I am one, and fear they may well lose my site! This is what I have so far.. I have created 2 fields one called Linkname and one called LinkURL. The link name is for the name of the link. e.g. "Click here to view my website" The link URL is the URL. e.g. http://www.yourwebsite.com/ I have added them to the _publish_listing.html template as follows. <a href="$lfield30$">$lfield31$</a> Is there some code that needs to be added that will open the link in a new browser, not the same one (self)? Cheers! PS This forum is the best, so helpful!
(This post was edited by nznan on Mar 9, 2003, 2:51 PM)
|
|
|  |
 |

Benjamin
Staff

Mar 9, 2003, 3:48 PM
Post #2 of 3
(1273 views)
Shortcut
|
|
Re: [nznan] link to open in a new page
[In reply to]
|
Can't Post
|
|
Hi! You'll be glad to hear it's a nice easy fix - just tweak your <a> tag to the following: <a href="$lfield30$" target="_blank">$lfield31$</a> the target="_blank" bit, just tells the browser to open up the link in a new window. And that's it! :-) Ben interactivetools.com
|
|
|  |
 |

nznan
Novice
Mar 9, 2003, 4:07 PM
Post #3 of 3
(1267 views)
Shortcut
|
|
Re: [Benjamin] link to open in a new page
[In reply to]
|
Can't Post
|
|
Thanks so much..knew it had to be something simple!
|
|
|  |
|