Jump to content

noscript tag problem


hamza

Recommended Posts

You would need to post an example of what you are doing.

 

Since php is parsed on the server, a <noscript> tag has no relevance to php code. The <noscript> tag only has meaning in the browser when scripting in the browser is turned off.

Link to comment
https://forums.phpfreaks.com/topic/125882-noscript-tag-problem/#findComment-650932
Share on other sites

Any solution to check on the client side that js is enable or not........................

 

If you need to check if javascript is enabled or disabled, simply try to set a cookie in javascript, and then have php check if it exists or not. This obviously can't be done at once, but I do this on sites.

 

Page 1 : Try to set the cookie using javascript.

Page 2 : Check for the cookie that javascript tried to set using php.

 

If php knows that javascript is on or not, php can set a seperate cookie that lets it know on any page to output javascript or noscript alternative stuff.

Link to comment
https://forums.phpfreaks.com/topic/125882-noscript-tag-problem/#findComment-655230
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.