Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript][HTML]Pobieranie href dla <a>
-Gość-
post
Post #1





Goście







  1. <a class="klasa" href="link">costam</a>


jak javascriptem pobrać link kryjący się pod href ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
BlackWorth
post
Post #2





Grupa: Zarejestrowani
Postów: 13
Pomógł: 1
Dołączył: 9.05.2011

Ostrzeżenie: (0%)
-----


var element=getDocumentByTagName("a");
var link=element.attr("href");
W JQuery tak by to wyglądało ale w js nie wiem (IMG:style_emoticons/default/haha.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 18:21