2

In Internet Explorer back in the day you could type this into the URL bar:

about:<body bgcolor=red>

And the screen would turn red.

Is there an equivalent "heredoc" syntax for loading HTML via a URL in Chrome?

William Entriken
  • 37,208
  • 23
  • 149
  • 195

1 Answers1

3

A data URI, perhaps?

data:text/html,<body bgcolor=red>

Ironically, this does not work on IE, although MSDN claims this is due to security reasons.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
  • Love it. I remember we were at a trade show and had a locked-down laptop and no cell phones and needed a timer. BAM! Javascript in the URL. – William Entriken Aug 12 '14 at 15:51