Home > Javascript > How to check browser has javascript enabled or not

How to check browser has javascript enabled or not


The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”&gt;

<html xmlns=”http://www.w3.org/1999/xhtml&#8221; xml:lang=”en”>
<head>
<title>Title</title>
<noscript>
<meta http-equiv=”refresh” content=”0;url=http://www.domain.com/errorPage.php”/>
</noscript>
</head>
<body>
</body>
</html>

  1. No comments yet.
  1. No trackbacks yet.

Leave a comment