473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

query regarding anchor tag

hi,
Is it possible using anchor tag (no button) to open two links by clicking on one link, for example I clicked a link and simultaneously two pages get opened.
Feb 14 '08 #1
6 1354
harshmaul
490 Expert 256MB
Hi,

What your going to have to do is make a link to another page.
And then on that page put javascript to open up a new link.

But i'm not to sure that this can be done with html alone.
Feb 14 '08 #2
harshmaul
490 Expert 256MB
hi again.
justr had a quick play around....

try this


Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.google.com" target="_blank" onClick="window.location.href='http://www.yahoo.com">choose your search engine</a>
Feb 14 '08 #3
But the pags may change , i cannot put javascripts on that page.
Hi,

What your going to have to do is make a link to another page.
And then on that page put javascript to open up a new link.

But i'm not to sure that this can be done with html alone.
Feb 14 '08 #4
harshmaul
490 Expert 256MB
hi. i spent time on it just now....

insert this insted of the hyperlink you put in there...


Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.google.com" target="_blank" onClick="window.open('http://www.yahoo.com/','mywindow','width=400,height=400')">choose a site</a>
Feb 14 '08 #5
thnx buddy its working fine :-)
hi. i spent time on it just now....

insert this insted of the hyperlink you put in there...


Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.google.com" target="_blank" onClick="window.open('http://www.yahoo.com/','mywindow','width=400,height=400')">choose a site</a>
Feb 15 '08 #6
harshmaul
490 Expert 256MB
No worries. I'm here to help!
Feb 15 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: knoak | last post by:
Hi there, I have a guestbook on my site, and it gets opened in a frame. Every message in the page has it's own anchor according to the message-number. Now i've made this thing that i can...
6
by: Daniele Baroncelli | last post by:
Hi guys, I would like to change the text in an anchor. es. from <a id="idanchor">oldtext</a> to
5
by: elsenraat_76 | last post by:
Hello! I was wondering if someone could help me out with a problem I'm having? I'm trying to input a javascript value into an anchor tag (from a function), but don't have an event to call the...
12
by: jason ji | last post by:
Hi, buddies I met expression like"$this" to reference a current mainform control in VB.NET Winforms programming. I don't know what $this stand for and how to use $. please advise. thanks, ...
7
by: stig | last post by:
hi. coming from postgresql, i am used to textual references to most of the things i do with the database. i feel a little lost with all the graphical. i have few questions regarding MS SQL 2000...
3
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a...
10
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. ...
3
by: rudranee | last post by:
hello, Can somebody please tell me how do i insert an anchor tag inside the mailto ? I tried using \ for tag but it is shown as it is in the letter. please help.
3
by: pbd22 | last post by:
Hi. I need some help with structuring my query strings. I have a form with a search bar and some links. Each link is a search type (such as "community"). The HREF for the link's anchor looks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.