This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Opening two links on one click

 
Ranch Hand
Posts: 50
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • 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: 607
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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: 607
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • 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
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic