• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening two links on one click

 
Srikanth Madasu
Ranch Hand
Posts: 48
Eclipse IDE Hibernate 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!!
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • 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.
 
Eric Pascarello
author
Rancher
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: 48
Eclipse IDE Hibernate 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!!
 
Bauke Scholtz
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
Rancher
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 Java Spring
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic