Javascript: can I detect non-js users and modify the page for them?

plagiarist

Senior member
Oct 31, 2004
323
0
76
Suppose I have an iframe and instead of an internal scrollbar, a pair of arrow buttons that people hover their mouse over to scroll up and down. (Hm, I should edit the code so that if they click the button it scrolls 2x as fast)

Suppose that someone without js visits my webpage. They are unable to scroll on any of my pages within the iframe.

Any way I can detect js disabled browsers and put the scrollbars back?
 

Mark R

Diamond Member
Oct 9, 1999
8,513
16
81
Create the frame with a scroll bar, and use js DOM maipulation to remove it.