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

javascript help with progress bar in html5

Explorer ,
Apr 26, 2012 Apr 26, 2012

Copy link to clipboard

Copied

I am trying to set a progress bar by javascript.  here is my code:

var it = 100;

<progress value="<script>document.write(it)</script>" max="100"></progress>

it shows the status at 0.  what am i doing wrong?

TOPICS
Server side applications

Views

902
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
LEGEND ,
Apr 28, 2012 Apr 28, 2012

Copy link to clipboard

Copied

Votes

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
Explorer ,
Apr 28, 2012 Apr 28, 2012

Copy link to clipboard

Copied

LATEST

thanks!  the first link looks promising.

Votes

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