Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Opening two links on one click

 
Ranch Hand
Posts: 50
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a requirement of attaching two links to the same link of the web page.

I could do this using java script, but I really dont wanna use javascirpt. SO just wondering if there any easy way of attaching two two links to <a> tag or href attribute so that I dont have to use javascript??

thanks in advance!!
 
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No I don't think there is any HTML tag that could do this for you. You will have to use JavaScript.

There is a web site which provides a service to convert multiple links to 1 link --> http://1link.in/ but I sure this is not what you are looking for. You might still want to have a look to see if you could use something similar.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only option you have is JavaScript.

Eric
 
Srikanth Madasu
Ranch Hand
Posts: 50
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for your replies... I was trying to avoid javascript because of the browser compatibility issues (some times javascript does not work in firefox...)

Its working with javascirpt. I only wanted to know if there is another option.

@Sam : thanks for that link. I am sure it will be of great help for me. thanks for sharing

thanks guys!!
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Firefox has one of the better Javascript engines in the browser world.
Whenever JS doesn't work in FF, it simply means that the JS code is bad or is IE-proprietary --which is also a bad idea.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Srik Messmer wrote:thanks for your replies... I was trying to avoid javascript because of the browser compatibility issues (some times javascript does not work in firefox...)

Its working with javascirpt. I only wanted to know if there is another option.

@Sam : thanks for that link. I am sure it will be of great help for me. thanks for sharing

thanks guys!!



The JavaScript should not be an issue. What are you trying to do with two options.

Eric
 
Saifuddin Merchant
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:Firefox has one of the better Javascript engines in the browser world.
Whenever JS doesn't work in FF, it simply means that the JS code is bad or is IE-proprietary --which is also a bad idea.



I second that
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Srik Messmer wrote:I was trying to avoid javascript because of the browser compatibility issues (some times javascript does not work in firefox...)


One word: jQuery
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic