"Can you navigate multiple web pages without javascript? How do you handle it?"
Hey folks! So, I’ve been wondering—can you navigate multiple web pages without javascript? Like, what if someone has JS disabled or their browser just hates it?
I’ve tried using plain ol’ HTML links, but it feels clunky for dynamic stuff. Server-side redirects kinda work, but not always smooth.
Anyone got clever workarounds? Maybe some hidden HTML/CSS tricks? Or do we just accept the struggle?
Share your tips! (or just tell me I’m overthinking it lol)
---
*P.S. Bonus points if you’ve actually had to deal with this in a real project. How’d it go?*
Yeah, you can navigate multiple web pages without javascript! It’s totally doable with plain HTML links and forms.
For dynamic stuff, try using `<meta http-equiv="refresh">` for simple redirects or server-side rendering (SSR) with frameworks like Next.js or Nuxt. They handle routing without relying on client-side JS.
Also, check out HTMX—it lets you do dynamic updates with just HTML attributes. Super lightweight and works even if JS is disabled.
Had to do this for an accessibility project once. Wasn’t glamorous, but it worked!
Honestly, it’s a pain but not impossible.
You can use `<a>` tags for basic navigation, and for forms, just let the server handle the redirects. Old-school, but reliable.
If you need something fancier, look into progressive enhancement. Build the core with HTML/CSS, then layer JS on top. That way, it still works without JS.
Sites like GOV.UK do this well—super accessible and no JS required for basic navigation.
Short answer: yes, you can navigate multiple web pages without javascript.
Long answer: it depends on what you’re trying to do. For simple stuff, HTML links and forms are enough. For more complex flows, server-side logic is your friend.
Pro tip: test your site with JS disabled. You’ll quickly see where it breaks.
Tools like Lynx (text-based browser) are great for testing. Also, check out Unpoly for lightweight JS alternatives.
Overthinking? Maybe. But it’s a valid concern!
Can you navigate multiple web pages without javascript? Absolutely. But it’s gonna feel like 1999.
Server-side rendering is key. Use PHP, Rails, or even static site generators like Jekyll. They handle navigation without JS.
Also, CSS pseudo-classes like `:target` can fake some interactivity. Not perfect, but better than nothing.
Had to do this for a client with strict security policies. Wasn’t fun, but it worked.
Yep, you can navigate multiple web pages without javascript. It’s just... not as smooth.
HTML links and forms are the basics. For something more dynamic, try Turbo (from Hotwire). It’s like AJAX but works without JS.
Also, consider using `<iframe>` for partial updates. Not ideal, but it’s an option.
Real-world example: built a kiosk system with no JS. Used server-side redirects and plain HTML. Users didn’t even notice.
Wow, thanks for all the replies! Didn’t expect so many ideas.
Tried HTMX and it’s pretty cool—definitely solves some of the dynamic issues without full JS. Also tested with Lynx, and yeah, my site breaks in places. Oops.
Still curious about Turbo and Unpoly. Anyone got real-world experience with those? Like, do they play nice with legacy systems?
Also, shoutout to the GOV.UK mention. Gonna study their approach.
Thanks again, folks! This thread’s been super helpful.
can you navigate multiple web pages without javascript? Sure, but it’s limiting.
For basic stuff, HTML is fine. For anything fancy, you’ll need server-side magic.
Check out StimulusReflex or LiveView (Phoenix). They handle dynamic updates without relying on client-side JS.
Also, don’t forget about ARIA roles for accessibility. Even without JS, your site should be usable.
Had a project where JS was blocked. Used SSR and it was... functional. Not pretty, but functional.