HTML Linking Help

Sledgehammer70Sledgehammer70 California Icrontian
edited May 2006 in Internet & Media
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?

Comments

  • Sledgehammer70Sledgehammer70 California Icrontian
    edited May 2006
    well I appreciate everyone’s help.... But I think I got it... I used JavaScript to create a generic box with input features and used the following code to implement it.


    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')

    }
  • edited May 2006
    glad we could be of service to you.:tongue2:

    bikerboy
  • GHoosdumGHoosdum Icrontian
    edited May 2006
    "If you do not know your name..." ;D
Sign In or Register to comment.