Forum Moderators: open
Here is basically what the page is:
<html>
<script language="javascript">
function addtrack(){
var addTrack = document.createElement("track");
input.type="text";
input.name="track";
input.size="20";
input.maxlength="50";
}
</script>
<body>
Track:
<input name="track" type="text" size="20" maxlength="50">
<button onclick="track();">MORE TRACKZ!</button>
</body>
</html>
Thanks in advance!
<html>
<head>
<script language="javascript">
function addtrack(){
var addTrack = document.createElement("track");
addTrack.type="text";
addTrack.name="track";
addTrack.size="20";
addTrack.maxlength="50";
.. more code here to add addTrack to page ..
}
</script>
</head>
<body>
Track:
<input name="track" type="text" size="20" maxlength="50">
<button onclick="addtrack();">MORE TRACKZ!</button>
</body>
</html>
I get that at the top of the page.
Try this and see how it works for you. It will probably still need work in placing the input where you want it to go but it at least should add a text input to the page putting you halfway there.
Here is basically what the page is:
<html>
<script language="javascript">
function makeaddtrack(){
var addTrack = document.createElement("input");
addTrack.type="text";
addTrack.name="track";
addTrack.size="20";
addTrack.maxlength="50";
document.body.appendChild(addTrack);
}
</script>
<body>
Track:
<input name="track" type="text" size="20" maxlength="50">
<button onclick="makeaddtrack();">MORE TRACKZ!</button>
</body>
</html>