hey everyone!!! im a total noob with javascript and am having trouble making this implementation work:
Code:
<button onclick='
<script type="text/javascript">
document.write("
Position: <input id="job_position_past_2" name="job_position_past_2" style="border:2px #12146B solid;" size="28" maxlength="50" type="text" />
<br/>
Company: <input id="job_company_past_2" name="job_company_past_2" style="border:2px #12146B solid;" size="28" maxlength="50" type="text" />
<br/>
")
</script>
' >Add job</button>
I'm running this in an html form on a local apache server. I'm just trying to include one of those "Add ___" buttons on forms that automatically insert another few input boxes. Javascript is enabled in the browser I'm using but I'm not sure if it is different because I'm on localhost.
WHen i click the button it says
"Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 "