0

in case that the user has deactivated JavaScript in his browser, i would like to show an error-message that my AngularJS-WeppApp can not be shown.

My first idea for doing this is to show this error-message by default and to replace it with my Angular- startpage when JavaScript is activated in browser.

My questions: is there a better idea and/or is there a standard-way to handle the problem with deactivated JavaScript and AngularJS-Apps.

2

1 Answer 1

1

The <noscript></noscript> tag will be executed if the javascript is disabled in the browser.

the <META http-equiv="refresh" content="0;URL=http://www.domain.com/javascriptdisable.html"> tag is executed to redirect the page from the client side when the content is removed from the page to redirect the client to the updated page.

so play smart

in the head section of your html tag

<head>
  <noscript>
    <META http-equiv="refresh" content="0;URL=http://www.domain.com/javascriptdisable.html">
  </noscript>
</head>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.