• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Simple javascript function not working on smaller devices

Guest
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

Hi, i needed to make an url validation so i added a script to the exported html to do so, it works like a charm.

the problem is when i use a smaller screen (mobile or resized desktop browser) the script doesn't run at all. this happens when the browser screen is less than 960px.

Views

233

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 17, 2017 Aug 17, 2017

Many older mobile devices don't fully support JavaScript and other fancies, hence the emulation gives you exactly that. If you want to make your page usable on these devices that e.g. have outdated versions of android, you have to forego such stuff. Nothing stops you from overriding it in a desktop emulation, of course, but the point still sticks - it may not work on a real device.

Mylenium

Votes

Translate

Translate
LEGEND ,
Aug 17, 2017 Aug 17, 2017

Copy link to clipboard

Copied

LATEST

Many older mobile devices don't fully support JavaScript and other fancies, hence the emulation gives you exactly that. If you want to make your page usable on these devices that e.g. have outdated versions of android, you have to forego such stuff. Nothing stops you from overriding it in a desktop emulation, of course, but the point still sticks - it may not work on a real device.

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines