javascript - Adding string to the end of submitted URL? -


i putting simple tool work user can add in data form field allows them remotely access device, need take them the login page.

<input type="text" name="prog_site" id="prog_site" value="http://" /> <a href="http://" onclick="this.href=document.getelementbyid('prog_site').value" target="_blank">let's go!</a> 

the above takes them said device, having problems adding script adds on following after submitted info (which ip address)

/web/guest/en/websys/webarch/authform.cgi

i have been looking @ ways need simple possible?

here full script:

    <script> function open_win()  { window.open(""); } </script>  <style> body { background-color: #fff; } </style>  <p><img src="logo.gif" /></p>  <p>hello customer</p>  <p>welcome activation</p>  <p><a target="_new" href="">instructions</a></p>   <input type="text" name="prog_site" id="prog_site" value="http://" /> <a href="http://" onclick="this.href=document.getelementbyid('prog_site').value" target="_blank">let's go!</a> 

possibly i'm misreading question, wrong with:

<a href="http://"     onclick="this.href=(document.getelementbyid('prog_site').value +                        '/web/guest/en/websys/webarch/authform.cgi')"     target="_blank">let's go!</a> 

?


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -