Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

noscript advice needed please.

Featured Replies

I've got a piece of jQuery script, that hides divs until a link is clicked. The image below shows this. Each arrowed rectangle is a link, and when clicked on a div opens up below, with more information. It's all working and there's no problem with it. I've just got to put the content in each div ( you can see it here: http://basewebdesign...site-design.php).

noscript.JPG

 

 

What I'm trying to consider is what happens when javascript is disabled in the browser. I know I can use content enclosed in the <noscript> tag, and this will only display if javascript is disabled in the browser.

 

I know I can just put the hidden content of the divs into the noscript tags, and it will then output them if js is disabled. This increases bloat on the page though, as there would be two versions of the same content on the page.

 

I thought of a way around this, but I'm not sure if it will work, and that's what I'm asking. If I created a php file, with the same content as the hidden divs, and then used an include in the nofollow tags, would the include only work if js was disabled?

 

Thanks in advance,

 

Stu

 

EDIT: Scratch that, the php include is still output, just tried itsorry.gif

Edited by StuartPB

  • Author

Thanks, I managed to sort it out eventually

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.