Reply
Old 05-01-2014, 10:06 AM   #1 (permalink)
 
Status: Senior Member
Posts: 719



Default question about making a simple webpage.

So I know nothing about html but I\’m sure this should be a quick thing. I\’m trying to make a simple webpage with a place to paste a IP into and pick from two options.
What I would need it to do it open two extra tabs and put the ip in a url like, for the 2nd tab https://0.0.0.0/somethinggoeshere where it would insert the IP of whatever I pasted into the url of the new tab
Also make it open a 3rd tab with 0.0.0.0:8080
I’m sure its a simple thing for someone to do that knows what he/she is doing but I don\’t know much about making webpages.
Thanks for the help in advance

Money07 is offline   Reply With Quote
Old 05-01-2014, 10:06 AM   #2 (permalink)
 
Status: Senior Member
Posts: 272



Default question about making a simple webpage.

Disregarding input validation or making things look nice, something like this should do...

<input type="text" id="ip_addr">
<button id="ip_submit">Go</button>

<script type="text/javascript">
var submitBtn = document.getElementById("ip_submit")
submitBtn.onclick = function() {
****var ipInput = document.getElementById("ip_addr" ).value;
****window.open("http://" + ipInput + "/somethinghere");
****window.open("http://" + ipInput + ":8080");
}
</script>
Empire539 is offline   Reply With Quote
more..

Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question with Editing a ?CSS? webpage I bought and with making a flash file smaller please help!!!? JohnyZone Html Code/ Html Codes 0 05-28-2014 10:05 AM
Need help making a simple question and answer program.? Collin Programming 0 03-11-2013 07:07 AM
i need help with a simple html webpage? Unknown_User Html Code/ Html Codes 7 03-11-2012 07:06 AM
Hsving a big trouble making a simple webpage using word? Unknown_User Coding 2 01-17-2012 01:36 AM
Having A BIG trouble making a simple webpage using Word? Unknown_User Html Code/ Html Codes 3 01-17-2012 01:05 AM