5 Mar 2022
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.
6 Mar 2022
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!]