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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -