Can anyone edit this tracking code to add email section?

31 0 3

i don't know if this goes here but can anyone add a email section on this code it has the parcelsapp tracking when putting a tracking number it opens in a new tab. i got it off a youtube comment which I added it into a new page and it works but I just need a email section so the customer can put in their email instead of their tracking number or both?

this the code:

<script type="text/javascript">// function changeText2(){ var textboxpw = document.getElementById("userInput"); url = (''+textboxpw.value);, '_blank'); } // ]]></script> <div style="text-align: center;">Enter your tracking number here to see your order status.</div> <br /> <div style="text-align: center;"><input type="text" id="userInput" value=" " /> <input type="submit" onclick="changeText2()" value="Track" /></div>