3 ms·
Does pasting javascript into the URL bar execute it?
by sbierwagen 5y ago
Does pasting javascript into the URL bar execute it?
- azeirah 5y agoYes, the `javascript:` prefix tells the browser to interpret the url as javascript. Try this one for example javascript:alert('hello world'); Do note that some browsers remove the `javascript:` part when you paste it into the url bar because it could easily be used maliciously so you might have to type that yourself.