Ways to insert javascript into URL?

前端 未结 9 1017
感动是毒
感动是毒 2020-12-17 17:32

Duplicate of:

What common web exploits should I know about?

This is a security question.

What should I

9条回答
  •  無奈伤痛
    2020-12-17 18:06

    Javascript can be executed against the current page just by putting it in the URL address, e.g.

    javascript:;alert(window.document.body.innerHTML);
    javascript:;alert(window.document.body.childNodes[0].innerHTML);
    

提交回复
热议问题