Jump to content

noscript


The Little Guy

Recommended Posts

if I were to use the <noscript></noscript> tags, is there a way using php to check if the info between this ran?

 

basically I have JavaScript built into my site, and for the site to work it MUST have JavaScript enabled.

 

If it is not enabled, I would like to hult the loading of the page, and just say JavaScript must be enabled to view the page.

 

any way to do this???

Link to comment
Share on other sites

I need to do something similar...if Javascript is disabled then redirect the user to a different page...

 

Come to think of it, I just had an idea as I was posting this... :D

 

<noscript>
<?php
header('location: nojs.php');
?>
</noscript>

 

Not sure if that's exactly what you're looking for though.

Link to comment
Share on other sites

Which one is better???

 

 

<noscript>
<?php
header location("nojs.php");
?>
</noscript>

does this work? or will it actually do the refresh no matter what??

 

This one works for sure (except for IE i just realized):

<noscript>
<meta http-equiv="refresh" content="0;url=http://mysize.com/nojs.php">
</noscript>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.