1

What is the significance of cmdValue in the input tag in the following:

<input type="button" value="Bold" cmdValue="bold">

This is from <div id="actions"> on a website.

I looked up the input tag on several HTML reference sites and searched for cmdValue in conjunction with the input tag, but could find no data.

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
stargate
  • 13
  • 3

2 Answers2

1

That is not a formal HTML attribute for any known tag.

That is certainly a customized attribute added by the developers of that website.

I prefer to forward you to read the answers of this question.

Community
  • 1
  • 1
0

The significance is whatever the CSS or JavaScript code for the page assigns to it. You would need to analyze the page in detail to find this out.

As such, the nonstandard has no effect beyond getting inserted into the DOM as an attribute.

Jukka K. Korpela
  • 195,524
  • 37
  • 270
  • 390