English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories


ABOUT US



What does the a href ="javascript:;" do?

Its been almost two years since I learned Javascript, CSS and HTML. Have they changed a lot since then or is it just me? I seem to not know how to do a lot of stuff.

2006-12-12 10:25:29 · 4 answers · asked by M 1 in Computers & Internet Programming & Design

What would it mean if there was something after the "Javascript:"?

How would it work if suppose it weren't a dead link?

2006-12-14 06:22:15 · update #1

I took the following piece of code from the code view of Dreamweaver. I was looking at some of the sample homepages that came with Dreamweaver. The "About Us" is supposed to be a link. And, it doesn't take you anywhere when you click on it, so you guys are all right.

2006-12-15 06:16:10 · update #2

4 answers

It's a big new world out there (in here).

You have to know the dom, ajax techniques, and a bit about events!

Modern design has changed quite a bit too!
1) tables are just for tabular data, not for positioning, that's css
2) Sprinkling javascript tags like the clip you showed us are replaced by dom navigation and modification.
3) mouseover javascript is best done in css.

AND MUCH MORE!

UPDATE:

if it is not a dead link, it is a placeholder. the work is done via the onclick or the dom has been manipulated to actually go somewhere.

2006-12-12 11:06:26 · answer #1 · answered by jake cigar™ is retired 7 · 0 0

[a href ="javascript:;"] this bit of code doesn't actually do anything. The href usually points to something...picture, website, etc. If you're trying to call a function the code will look different. W3 Schools is a great place to learn about javascript.

2006-12-12 18:29:33 · answer #2 · answered by HomSupLo75 4 · 1 0

Nothing, its a "dead" link, equivalent to someone using click here

2006-12-12 18:29:07 · answer #3 · answered by arus.geo 7 · 1 0

What's the whole code? What are you trying to do with this?

2006-12-12 18:32:50 · answer #4 · answered by act1withme_2000 2 · 0 0

fedest.com, questions and answers