aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Opening two links on one click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Opening two links on one click" Watch "Opening two links on one click" New topic
Author

Opening two links on one click

Srikanth Madasu
Ranch Hand

Joined: Sep 10, 2008
Posts: 48

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!!


If it's easy.. then everybody would do it!
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

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.


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Only option you have is JavaScript.

Eric
Srikanth Madasu
Ranch Hand

Joined: Sep 10, 2008
Posts: 48

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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Feb 08, 2009
Posts: 606

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

Joined: Jan 10, 2002
Posts: 61756
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening two links on one click