William Entriken
William Entriken

Reputation: 39243

Stuffing HTML in an about: URL with Chrome

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?

Upvotes: 2

Views: 219

Answers (1)

BoltClock
BoltClock

Reputation: 723388

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.

Upvotes: 3

Related Questions