Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create a link when user clicks a button

Status
Not open for further replies.

progress1on

Programmer
Mar 20, 2010
2
GB
Hi All

thanks for helping.

As the subject says I would like to use javascript on my webpage. This is so that
1.The page will load with one of my portfolio items (I webdesign, a little anyway ;)) which will describe it, but at that point there will not by a regular HTML link to the website I have made.

2. The user will have the option to go to the site but they will have to 'do' something a user can do, but a 'bot' cannot.

3. I think I would like them to have the option of clicking on a regular button, which will take them to the relevant website in question.

4. I am not sure how to do this.

any ideas much appreciated,
take care
g
 
1. You can load the page regularly, and put a button wherever it is you want it.

2. That is usually done using something called "Captcha", google it for quite a few scripts out there that can do what you want. Some are Js based, some are not.

3. Look into the window.location method in Javascript, and use it in the button's OnClick event to redirect the user to another page.

Here are some examples to get you on your way:


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top