Dynadot Black Friday and Cyber Monday 2026: save more on domains. See our sales.

"Please enable javascript" code wanted

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch
Hi Guys,

I'm looking for some code to test if javascript is enabled in the browser, and display a "this website requires javascript, please enable javascript and reload" message.

Anyone have something simple for this? I've tried searching google but the results are polluted and nothing relevant comes up.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
HTML:
<noscript>JavaScript is turned off in your web browser. Turn it on, then refresh the page.</noscript>
 
1
Close
HTML:
<noscript>JavaScript is turned off in your web browser. Turn it on, then refresh the page.</noscript>

hey, that worked perfectly. Really simple too. Thanks a lot for the quick help :)

EDIT: Rep added :)
 
Last edited:
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back