473,396 Members | 1,840 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.

links javascript in firefox

oranoos3000
107 100+
hi
would you please help me,

i'm working one a site project that summary of the content is shown in the first page and users with click continue link can see content completely

i want to call a function with click continue link
show_content is the a function that inside call a ajax request and fetch complete content and return and this content is shown in the special part of the page

i write this code as follow

Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:show_content(3);" onClick="return false;">continue</a>
this code is run is IE correctly because in firefox dont
act

thanks alot for your help.
Oct 7 '10 #1
3 1398
gits
5,390 Expert Mod 4TB
the link should look like:

Expand|Select|Wrap|Line Numbers
  1. <a href="#" onclick="show_content(3); return false;">continue</a>
Oct 8 '10 #2
Atli
5,058 Expert 4TB
You can also do:
Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:void(0);" onclick="show_content(3); return false;">continue</a>
That way you don't get the # added to the URL.
Oct 16 '10 #3
acoder
16,027 Expert Mod 8TB
Even better, make it into a proper link (for those without JavaScript) and the return false will take care of the link not being followed for those with JavaScript enabled.
Oct 18 '10 #4

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

Similar topics

4
by: Dave Blair | last post by:
Hi, I have a problem with our intranet, we are planning to install Firefox instead of Internet Explorer onto some new PCs. However, we can't get the following JavaScript to work in Firefox and...
4
by: nec | last post by:
Hi, I'm having trouble calling a function thats located in a iFrame from the parent. Shortly, i can't figure out the location in DOM. In IE it works fine with a simple line of...
10
by: andreister | last post by:
He there! I've discovered that the ================================================= document.links('link_id_here').href = "something"; ================================================= is...
1
by: luckyroom505 | last post by:
Hello to you all. I am trying to use an already installed dll on a Windows machine. I use javascript, and the OBJECT tag. On Internet Explorer this works fine, but on Firefox (v1.04) not. ...
1
by: Yeezy | last post by:
Hi, I have the following javascript in my .aspx page where it will redirect you to another new .apsx. However, I have no problem with it when running on IE.. But when it's run with firefox, the...
10
by: Michael7 | last post by:
Hi everyone, With all the trouble I have concerning simple things with CSS (still learning), I think I am getting it now, but have stumbled upon a relatively NOT simple problem. I've looked all...
2
by: lifemaker | last post by:
Hi, I made an attempt to use Open Realty with custome template. Prepared CSS for IE without previewing in Firefox (mistake), and today I saw that links doesn't work in Firefox. When using...
5
by: loveshack | last post by:
Can anyone help me please (i am quite a novice, but having fun learning). Im not sure if this is an ASP problem, a javascript problem or a browser problem. Firstly, everything i have written...
8
by: rhino | last post by:
I have an unordered list of links that forms a horizontal tab bar. It works perfectly in IE6, IE7, and Opera 9.27. However, in Firefox 2.0.0.14. For whatever reason, when I click on my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...

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.