Hi im facing problem in this html document please help me
Im very new to this.
May be i am fool to missing something out.
I have put only useful source here to solve please.
<!DOCTYPE html>
<html>
<body id="owner_profile">
<a id="buy" owner="789" token="1000" wrapper="purchase" name="oname">Hurray!</a><br>
<script>
document.write("You Have: ");
document.write(document.getElementById('buy').token);
</script>
</body>
</html>
I want it to display token but its giving undefined
Result is :
Hurray!
You Have: undefined