Page 1 of 1

Alert boxes in URL

PostPosted: Thu May 11, 2017 11:53 am
by Stellabrate
So I've been reading up on JavaScript Injection, and I find the alert box section very interesting. I've been playing around with it and I was wondering, how do you put an alert box in a URL?

Like I want to be able to click on a link, and when I go to the site, my custom alert box pops up. Every time I add the alert box text with the URL the site doesn't show up though, I hope what I am trying to say makes sense. Thanks

Re: Alert boxes in URL

PostPosted: Thu May 11, 2017 12:42 pm
by boriz666
Greetings,
you cant make alert boxes in the url, due to security reasons.
You can execute scripts though, putting this as the url in your address field:
javascript:alert("hello");

Re: Alert boxes in URL

PostPosted: Thu May 11, 2017 2:35 pm
by Stellabrate
Oh okay, I gotcha. Thanks.