How do I go about doing this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I go about doing this?

I can't use < > https://code.sololearn.com/WlIEupeAAl04/?ref=app

4th Aug 2020, 4:09 PM
Arnesh
Arnesh - avatar
2 Answers
+ 8
Use this document.body.innerHTML+= "<script>"+alert('hi')+"<"/"script>" Hope this help
4th Aug 2020, 4:27 PM
Harsh
Harsh - avatar
+ 2
Harsh, it doesn't work completely but great idea splitting the tag. Thanks. :)
4th Aug 2020, 4:36 PM
Arnesh
Arnesh - avatar