Click to See Complete Forum and Search --> : Test 4 javascript and frames...


spykemitchell
10-03-2003, 02:15 PM
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?

Jona
10-03-2003, 07:12 PM
You could do it with a test link:


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


I made a script in PHP/JS that will auto-redirect users and set a cookie...

[J]ona

spykemitchell
10-04-2003, 04:57 AM
does the onclick function only work if you have javascript working then?

spykemitchell
10-04-2003, 04:58 AM
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?

Jona
10-04-2003, 02:42 PM
Originally posted by spykemitchell
does the onclick function only work if you have javascript working then?

The onClick event handler is for JavaScript exclusively, and therefore will only work if you have JavaScript enabled.

[J]ona

Jona
10-04-2003, 03:20 PM
Originally posted by spykemitchell
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?

An online example is at: http://sonoracabinets.com/testing/jsEnabled.php

[J]ona

spykemitchell
10-05-2003, 06:10 AM
Thats what i want it to do. could you please post that script if you do not mind?

Jona
10-05-2003, 09:46 PM
Send me an email, and I'll reply with the scripts attached, since it's multiple files.

[J]ona

spykemitchell
10-12-2003, 12:08 PM
sorry i took ages to reply, i haven't got your email, could you please PM me it!