2 Replies - 764 Views - Last Post: 07 March 2013 - 01:16 PM

#1 AIintern  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 53
  • Joined: 06-June 12

Automatically Re-Directing after "On Click" command

Posted 07 March 2013 - 01:08 PM

I am using HTML to do this.

When someone clicks the "DONE" button, I want to re direct them to a website (Preferably in another tab)

For example

if someone selects
"HALO CHEAT CODES"
and hits done
I want them to be re directed to a different site automatically.

So far what I am doing is

window.alert('+insert website here+');

Then I copy and paste the address and put it in a browser.

any help would be awesome!

Thanks guys.

Is This A Good Question/Topic? 0
  • +

Replies To: Automatically Re-Directing after "On Click" command

#2 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 2881
  • View blog
  • Posts: 9,559
  • Joined: 12-December 12

Re: Automatically Re-Directing after "On Click" command

Posted 07 March 2013 - 01:14 PM

You could use an HTML A-link:

<a href="the address">Done</a>

You could use CSS and possibly an image so that it looks like a button.

or Javascript:
window.location.href = "the address";

Was This Post Helpful? 0
  • +
  • -

#3 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3392
  • View blog
  • Posts: 9,586
  • Joined: 08-June 10

Re: Automatically Re-Directing after "On Click" command

Posted 07 March 2013 - 01:16 PM

you could do it with a form, but youíll need Java​Script to fetch the address from the selection and either insert it into the formís action attribute or to call window.location.href with it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1