samedi 7 mars 2015

How do you redirect a website using javascript code?


Vote count:

0




suppose I have a web page with the material below;



Hmmmm I wonder what you can do: <br><a href="http://weakweb.com">Click Link</a>


Lets suppose my web also has a typing box, where I type in a word and it puts it onto the page. This typing box can also unknowingly execute javascript code if locked in. I want to change the reference web to redirect anyone who click to http://www.google.com/ instead of the 'weakweb'. How do I achieve this redirection using javascript?


THANKS



asked 50 secs ago







How do you redirect a website using javascript code?

Aucun commentaire:

Enregistrer un commentaire