javascript: URL protocolEMBEDDED

Check whether javascript: remains in URL attributes such as href or action and executes on user interaction.

HTML payload check

This scenario tests how user input is rendered into HTML / DOM, not iframe sandbox behavior.

  • Verify that javascript: is removed from URL-bearing attributes such as href, action, and src
  • Normalize case, whitespace, and entity encoding before validation
  • Confirm that delayed payloads requiring a user click are also blocked

Payload

Payload to copy

URL-protocol XSS that executes after a user click.

Paste into

An editor, comment, profile, or HTML-rendering input in a dev/staging surface you are authorized to test

Result rule

Execution is a warning sign. Expected defenses render the code as text or remove the executable parts.

Preview

The preview intentionally performs unsafe rendering for learning. In a real service, this payload should be escaped as text or removed.

Log

// no logs

Explanation