473,503 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Hyperlink Function is Called Twice

4 New Member
I am using <a href="javascript:someFunction('someValue','someVal ue2')"> Click here </a>

But when i clicked on it, it actually call the "someFunction" function twice.
This only happen to Mozilla Browser. IE only called once.

Kindly advise what is wrong with this method?
10,000 Thank you!!

Regard,
Jason
Sep 2 '08 #1
5 1686
RamananKalirajan
608 Contributor
Hi Kai, I tried this code in IE as well as Mozilla I am getting that someFunction() called only once. can u please tell in which version of mozilla u got the call twice

Regards
Ramanan Kalirajan
Sep 2 '08 #2
kai97
4 New Member
Hi Kai, I tried this code in IE as well as Mozilla I am getting that someFunction() called only once. can u please tell in which version of mozilla u got the call twice

Regards
Ramanan Kalirajan
Hi Ramanan,

Thanks for your prompt reply!

I tried both v2 and v3 of mozilla browser and both the same.
I had google-ing about this problem and realised that it happened to others too.
[removed link]
However, i cannot find a link which provide a workable solution.
Sorry, I am still new in web application deverlopment.
Hope to hear from you again soon!
Thank you.

Regards
Kai
Sep 3 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
Post the code for someFunction. As a general rule, you should put JavaScript in onclick and put a real URL in the href attribute.
Sep 3 '08 #4
kai97
4 New Member
Post the code for someFunction. As a general rule, you should put JavaScript in onclick and put a real URL in the href attribute.

Hi Acoder,

Thanks for the help, i am a very new developer for my current company.
Thus, i don't have the right to review any of my company's codes to anyone.
I am very sorry for that... however, with the help of my senior developer, we found out that the problem is not lie in the javascript but the <frame> tag.
It called itself again when we have something like <frame src="">.
We have tried to put <frame src="#"> or <frame src="dummy.htm"> but none of the solution works. We will try again with other methods.
Thanks again for everyone who have help up. :)

Regards,
Jason
Sep 12 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
What does someFunction() do? Can you not just post the relevant part of the code?
Sep 12 '08 #6

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

Similar topics

4
3844
by: Nate Murray | last post by:
Hey all, I'm having a strange PHP (4.3.10) problem that seems to have something to do with javascript. This is a bit complex, so hold on to your hats. My issue is that a single function is...
4
6296
by: bboyle18 | last post by:
Hi, I am working with a table sorting script which can be found here http://www.workingwith.me.uk/articles/scripting/standardista_table_sorting This script works very nicely, but when there is a...
1
2609
by: Blackmore | last post by:
I have tried to enhance the functionality of my website by adding some javascript functions to augment my hyperlinks. I have not removed the hyperlink as I am conscious that some browsers may have...
1
2551
by: KRISHNA PRAVI | last post by:
the error is "runtime error object expected" here is the code....................................................................................... <script language="javascript"...
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
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
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
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...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.