Published in : 2022-03-05
I am wondering to do something meaningful. I am trying to add a script the URL, when user click on the URL, it should run the script and show them some results on their browser screen.
Any possible solutions will be highly appreciated.
Join our community and get the chance to solve your code issues & share your opinion with usSign up Now
Rakshit Date : 2022-03-06
Your purpose is not bad, but most of browsers follow privacy policies. If you do whatever you said above, it is an example of Cross Site Scripting (XSS) Attack.
Due to major security concerns, any giants of the browsers will not allow such things by default.
Let me explain a simple scenario about what I explained just now,
In real-time, browsers don't allow it.
What if they allow such a thing?
Browsers would open the door for all kinds of attacks, like stealing passwords of the user will type into login forms, etc. [It might destroy the internet!]
Shilpa Date : 2022-03-06
Understood, your explanation is quite generous.