46
rated 0 times
[
49]
[
3]
/ answers: 1 / hits: 24102
/ 13 Years ago, fri, november 25, 2011, 12:00:00
I want to use the HTML5
placeholder
attribute in my code if the user's browser supports it otherwise just print the field name on top of the form. But I only want to check whether placeholder is supported and not what version/name of browser the user is using.
So Ideally i would want to do something like
<body>
<script>
if (placeholderIsNotSupported) {
<b>Username</b>;
}
</script>
<input type = text placeholder =Username>
</body>
Except Im not sure of the javascript bit. Help is appreciated!
More From » html