Sending Text Cross Domain By Bookmarklet

前端 未结 3 574
遥遥无期
遥遥无期 2020-12-15 14:11

I need a user to navigate to a certain page that has a certain div full of useful text. Then click my bookmarklet and send the text in that div back to my server, which is

3条回答
  •  感动是毒
    2020-12-15 14:46

    Here is an example to post text to a remote server. And you can print javascript in the remote server if you want to change the page you have the Iframe on to say something like success. Or a popup saying it finished. On the remote server you can print this to make a popup:

    
    

    On the webpage you want to send information from make a form and Iframe like this.

    
    

提交回复
热议问题