javascript - Invalid code for functioning link button? -
this link when clicked opens slideshow. problem is, not valid, though works perfectly. there way make valid?
<input type="button" class="trynow" value="features tour" href='tour_first.asp?' &encode('platform=' &plattype) &'' onclick=' return loadslide(0);' /> visual studio warns me @ href, encode, plattype , onclick.
the link derived syntactically correct text link version, shown:
response.write("<a href=""tour_first.asp?" &encode("platform=" &plattype) &""" onclick=""return loadslide(0);"">tour</a>
your code not valid because has many syntax errors (you have declare each attribute in 1 of these ways: key='value' or key="value").
moreover, input tag has no href, encode , playtipe attributes. if want use custom attributes, should read article data-* attributes.
Comments
Post a Comment