473,396 Members | 2,014 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.

href+#+ie5

I have an button:

<ul class="buttonbig" onclick="javascript: change_location('link')">
<li><a href="#" title="test">example</a></li>
</ul>

The problem is that's not working in IE5.0. The reason is that I use "#"
in <a>. Is there any other way to solve it ?

Maybe I have to give up and use link in <a href="link"> ?

--
Regards, Cezar.
================================
Jul 23 '05 #1
2 2246
Cezar wrote:

<ul class="buttonbig" onclick="javascript: change_location('link')">
<li><a href="#" title="test">example</a></li>
</ul>

Two errors:
1. remove "javascript:"
2. href="#" points to nowhere.
It's interpretation is undefined and varies with how each browser
decides to deal with it.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #2
Cezar wrote:

<ul class="buttonbig" onclick="javascript: change_location('link')">
<li><a href="#" title="test">example</a></li>
</ul>

Oops. A third error.
3. change onclick to "change_location('link'); return false;"

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Federico Bari | last post by:
Good morning all from italy, i have probably a compatibility problem with a html/javascript page. The aim of the code of the file test.htm you find here following (copy the 3 files in the...
6
by: Jeff Thies | last post by:
I have some pages where I need to use a base href tag. Mac behaviour is different than PC. I have this: <base href="http://some_domain.com" /> The page would be:...
1
by: viza | last post by:
Hi! I have found that IE5.0 is misreading precentage sizes on content next to floats. Specifically, they are read as a percentage of the space left after the preceding float is placed, not of...
2
by: Oliver Burnett-Hall | last post by:
I'm trying to move to using tableless page layouts, but I've come across what appears to be a bug in IE5's rendering that I can't find a way to overcome. The page has a sidebar to the left of...
0
by: rebons | last post by:
First problem In Netscape7, over first link (home) there isn't margin (contour) while in IE5 yes. Second problem Both Netscape7 and IE5 there isn't margin (contour) bottom last link (zzzzz) ...
7
by: Mandy | last post by:
This fails only in IE 5. It works flawlessly in IE5.5+, Netscape, Opera and Mozilla. I'm using javascript to navigate in my content. I can load the starting page just fine (page0.html). Any...
8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
4
by: Andrew Poulos | last post by:
Sorry for the re-post but the original message subject no longer applies. If I try this in IE5, it doesn't work: <script type="text/javascript"> window.onload = foo; </script> <body> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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.