Making email addresses safe from bots on a webpage?

前端 未结 22 1863
不知归路
不知归路 2020-12-02 08:09

When placing email addresses on a webpage do you place them as text like this:

joe.somebody@company.com

or use a clever trick to try and fo

22条回答
  •  死守一世寂寞
    2020-12-02 08:34

    Option 1 : Split email address into multiple parts and create an array in JavaScript out of these parts. Next join these parts in the correct order and use the .innerHTML property to add the email address to the web page.

          // blank tag
    
     
    

    Option 2 : Use image instead of email text

    Image creator website from text : http://www.chxo.com/labelgen/

    Option 3 : We can use AT instead of "@" and DOT instead of " . "

    i.e :

     info(AT)XXXabc(DOT)com 
    

提交回复
热议问题