Hi,
I came across a script that when you submit a form, it opens a pop up window where you can pass the value of any of the input fields.
The script works great the only problem that I have is that in the ORD field I have to enter a letter before the number
for example B123 is there a way to take the B out in the script?
I came across a script that when you submit a form, it opens a pop up window where you can pass the value of any of the input fields.
Code:
<SCRIPT LANGUAGE="JavaScript">
function display() {
DispWin = window.open('','onself','menubar=yes,status=yes,toolbar=yes,width=520,height=600')
message = "<HTML><HEAD><center><TITLE>Davies Labor Scan </TITLE></center></HEAD><BODY>"
message += "<br><p><center>Order Number '" + document.form1.ORD.value;
message += "' .</p><p>"
message += "<br><p><center>Macine Number " + document.form1.LMACRN.value;
message += "></p>"
message += "<br><p><center>Part Number " + document.form1.part.value;
message += "</p>"
message += "<p>Click on <b> File - Print</b> "
message += "from your browser to print the page "
message += "</p></BODY></HTML>"
onLoad = window.close();
DispWin.document.write(message);
DispWin.document.close();
}
</SCRIPT>
The script works great the only problem that I have is that in the ORD field I have to enter a letter before the number
for example B123 is there a way to take the B out in the script?