Welcome to Geeklog, Anonymous Tuesday, October 08 2024 @ 10:58 pm EDT

Geeklog Forums

Link help


Anonymous

Anonymous
Can someone make something or give me a code to get links in news posts opened in a new window so people dont have to leave my site just to visit a link?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
<a href="http://example.com/" target="_blank">click here</a> But you shouldn't really use this. Let the visitors decide whether they want to open a new window for a link or not (depending on OS and browser, that's usually done with a click on the right or middle mouse button on the link). I don't think this will really keep anyone on your site. Instead, it will surely drive away others (me, for example) who like to have full control over how their browser behaves. The best way to make visitors come back is to have some interesting content. bye, Dirk
 Quote

lakhanianish

Anonymous
Hey Buddy, I have read the reply given to you by Dirk, here there is other option to do that work. <a href="#" inclick="window.open('http://www.Site_Name.com')">click here</a> Easy, is'nt it..... Bye...
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
IMO, that solution is even worse (sorry) since it relies on Javascript being enabled. Many people will have Javascript disabled because of security issues (or simply because it's an easy way to stop those annoying popups). Why rely on Javascript when there's a perfectly valid solution in HTML? bye, Dirk
 Quote

All times are EDT. The time is now 10:58 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content