Jump to content

php javascript disabled problem!


sooty2006
 Share

Recommended Posts

i got a website that needs javascript for the page to function otherwise it creates problems,how can i create a pop-up etc using php to redirect them to a page saying they need to have there javscript enabled to visit the page?if u can im not sure?any help will help me alot!thanks scott!

Link to comment
Share on other sites

you cant make a popup saying that javascript is needed, because the only way to make a popup is with javascript (as far as i know, not sure about other browser based scripts)you can make a page saying that javascript is needed, and on that putting a javascript redirect, if someone got javascript on, they wont see the message but get redirected, if they dont have javascript, they will see the messageif you dont want to redirect, you also can make one div, and let that go over the whole site, with the message, and set one line of javascript to make the div invisable, so when people have javascript, it won't show that message

Link to comment
Share on other sites

how can i create a pop-up etc "USING PHP" to redirect them to a page saying they need to have there javscript enabled to visit the page?
^^ ok i understand wer ur coming from but ihave many pages wouldnt that take a long time to take doing it?
Link to comment
Share on other sites

ive done it now anyway

<div id="noscript">You need Javascript to view this page correctly</div><script type="text/javascript">document.getElementById("noscript").style.display = "none";</script>

thanks anyway m8!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...