HTML Linking Help
Sledgehammer70
California Icrontian
I am going to try to describe the best way I can what I am trying to do.
I am using fake site names for my explanation...
Say I have web site http://www.meathead.com and it is a site that is a portal to many sites under its name. Now when people click a join link I have on this site I want it to give them an option to fill in a name that was given to them. such as Mike Smith.
So a box pops up after clicking on the join link and says fill in your name "or something like that" and now when they click submit it will take them to the link below.
http://www.meathead.com/MikeSmith.html
So I guess the question is how do I create this object that will tack on a name and a .html to a predefined standard link?
I am using fake site names for my explanation...
Say I have web site http://www.meathead.com and it is a site that is a portal to many sites under its name. Now when people click a join link I have on this site I want it to give them an option to fill in a name that was given to them. such as Mike Smith.
So a box pops up after clicking on the join link and says fill in your name "or something like that" and now when they click submit it will take them to the link below.
http://www.meathead.com/MikeSmith.html
So I guess the question is how do I create this object that will tack on a name and a .html to a predefined standard link?
0
Comments
var thestring = prompt("Please enter your name. If you do not know your name click cancel for more info: ","");
if (thestring != null && thestring != "") {
window.open('http://www.s163065182.onlinehome.us/' + thestring + '.htm')
}
else
{
window.open("http://www.google.com", "_self", 'location=0')
}
bikerboy