Wrong window opens up on URL click

Hello Experts,
I have a Onclick event attached to button which should open a window (on Javascript), which is working just fine.  But, when I click on another URL same window opens up, which is not related to the URL at all.  Any idea what could be going on?  Please try to help.  Thank you in advance.

Note:  Due to company's restrictions I will not be able to post the code here.

Thank you!
RadhaKrishnaKiJayaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technical NinjaCommented:
Hi Radha,

Without looking at the code it is really difficult to guess what is going on. You can always remove sensitive information and then post the code here.

Regards,
Chinmay.
0
Jeffrey Dake Senior Director of TechnologyCommented:
100% guess, but you could have the target window names being the same. This could be causing your link to open in the same window that was opened previously
0
Omer RasheedCommented:
just a guess, your are using global variable in JS file and storing the url in it. The variable is also being used in other area of as well without properly resetting the value.
0
RadhaKrishnaKiJayaAuthor Commented:
Chinmay, Jeffrey and Omer for your support.  The other window was getting loaded because, it was included in the of Java Script.  Thank you all again for your help.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.