/    Sign up×
Community /Pin to ProfileBookmark

Java redirect in a CSS document

Java redirect in a CSS file

Is it possible, using BEHAVIOR or other selectors, to put some kind of java command in a .css file that would redirect to another page? My problem is I had a site on a free server who recently shut me out of editing or accessing the site, but its still up and the only access I have is the .css files for that now defunct site are remotely linked on a domain I do still have access to. So, I want to put some kind of code in those css files that will redirect anyone accessing the old site to my new domain. The reason I care is I’ve had this old site since ’97 (!) and it gets monster traffic and my new site is just up and running and gets zero.

Is it possible? I’ve tried 100 different combinations and google searched until my eyes are bleary but I can’t make it work.

Any help would be appreciated.

you can AIM me or email me too if you like
email: [email][email protected][/email]
AIM: docDWF

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@Zach_ElfersNov 30.2002 — As far as I know, that is not possible. You should try contacting the people in charge of your site and asking them to let you put a redirect script in. That's all the advice I can give you. Sorry!?
Copy linkTweet thisAlerts:
@StefanNov 30.2002 — JAVA is a programing language, but I assume you are talking about JavaScript.

In any case neighter can be put into a .css file.

What you can do is to use :before or :after in combination with CSS CONTENT to add a textlink to the site, but most browsers don't understand that CSS yet.
×

Success!

Help @docweasel 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...