-3

How do I hide link by JavaScript ,

Then I restore assembled

Example: do I distribute the link inside the words and then I do that I may have to collect the original link

EX : first word = goo + glee - e = google next word = c + o + m = com

link = first word +.+ next word = google.com

5
  • 5
    Once more, in English? Commented Dec 26, 2013 at 10:07
  • huh?? can try translating it into lamer term, coz its high :) Commented Dec 26, 2013 at 10:09
  • I guess you are trying to obfuscate name on the link? Right? Commented Dec 26, 2013 at 10:10
  • I'm sorry I newbie in learning English yes, I am trying to obfuscate name on the link Commented Dec 26, 2013 at 10:17
  • Good Guy Dafny But I want to hide it deeper this is very easy to identify him Commented Dec 26, 2013 at 10:19

1 Answer 1

0

changing links on click can work like this:

<!DOCTYPE HTML>
<html>
    <head>
        <title>Bla!</title>
        <script type='text/javascript'>
            function SetDest(a) {
                a.href = "http://stackoverflow.com" + "/questions/20782888/how-do-i-hide-link-by-javascript";
            }
        </script>
    </head>
    <body>
        <a href='' onclick='SetDest(this);'> Click Here </a>
    </body>
</html>

But to obfuscate it, you would better use regex. (still - it's possible to read, but little harder).

Sign up to request clarification or add additional context in comments.

2 Comments

Good Guy Dafny But I want to hide it deeper this is very easy to identify him
Well, This is the concept. You can use base64, regex or simply google for "obfuscate strings with javascript". I think that here: stackoverflow.com/questions/14458819/… You may find very good explanation about this.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.