/    Sign up×
Community /Pin to ProfileBookmark

Test 4 javascript and frames…

i want to create a startup page that tells the user the requirements for the website.

I wnt an easy way that can be tidily and simply contained in a single page that lets the user test whether they have javascript or not and whether they have frames or not..

I want the document to either say,

you have got javscript

you have not got javascript

(same for frames)

anyone help me?

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@JonaOct 04.2003 — [font=arial][color=maroon]You could do it with a test link:[/color][/font]

[font=monospace]

<a href="noJavascript.html" onClick="location.href='JavaScript.html'; return false;">Do you have JavaScript enabled?</a>

[/font]

[font=arial][color=maroon]I made a script in PHP/JS that will auto-redirect users and set a cookie...[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@spykemitchellauthorOct 04.2003 — does the onclick function only work if you have javascript working then?
Copy linkTweet thisAlerts:
@spykemitchellauthorOct 04.2003 — you said you did it in php, could i please have a copy of the script if you d not mind so i can have a look?
Copy linkTweet thisAlerts:
@JonaOct 04.2003 — [i]Originally posted by spykemitchell [/i]

[B]does the onclick function only work if you have javascript working then? [/B][/QUOTE]


[font=arial][color=maroon]The onClick event handler is for JavaScript [b]exclusively,[/b] and therefore will only work if you have JavaScript enabled.[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@JonaOct 04.2003 — [i]Originally posted by spykemitchell [/i]

[B]you said you did it in php, could i please have a copy of the script if you d not mind so i can have a look? [/B][/QUOTE]


[font=arial][color=maroon]An online example is at: http://sonoracabinets.com/testing/jsEnabled.php [/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@spykemitchellauthorOct 05.2003 — Thats what i want it to do. could you please post that script if you do not mind?
Copy linkTweet thisAlerts:
@JonaOct 06.2003 — [font=arial][color=maroon]Send me an email, and I'll reply with the scripts attached, since it's multiple files.[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@spykemitchellauthorOct 12.2003 — sorry i took ages to reply, i haven't got your email, could you please PM me it!
×

Success!

Help @spykemitchell 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.15,
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,
)...