/    Sign up×
Community /Pin to ProfileBookmark

alright, another question…

dang i wish i werent so rusty with javascript….oh well, here goes another question…

ive got a <link> tag that accesses a stylesheet named styles1.css…now when the user clicks a link, i need that link href to change to styles2.css…ive named the link tag “style”, but i dont know the proper….”directory” i guess is the word, to access the href…ive tried style.href , link.style.href , document.style.href , document.link.style.href and none of em seem to work…please help?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Da_WarriahauthorDec 28.2002 — thanx a bunch! the way you suggested probly works too (? ), but I used that link, which had a link at the bottom, showing me a good way to do it, with no hassles...i just love a site that gives me the code, tells me what everything does, and assures me it works...:p
Copy linkTweet thisAlerts:
@Da_WarriahauthorDec 28.2002 — yes, i agree, im still tweaking the code, so ill add that in?
×

Success!

Help @Da_Warriah spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...