Link Buttons
Hi!
I am pretty new on using JavaScript and I got a little problem. I am trying to make a link button with javascript and do not wish to resort to form buttons. So I am wondering if you could tell me what went wrong with my script and if you got a solution.
<script type="text/javascript">
var name = "Some text"
document.write("<button onClick="parent.location='index.html'">" +name+"</button>")
</script>
I am pretty new on using JavaScript and I got a little problem. I am trying to make a link button with javascript and do not wish to resort to form buttons. So I am wondering if you could tell me what went wrong with my script and if you got a solution.
<script type="text/javascript">
var name = "Some text"
document.write("<button onClick="parent.location='index.html'">"
</script>
