Problem with onerror redirect script

November 28, 2013 at 14:35:18
Specs: Windows 7
Please help...what am I missing here ?

<img src="http://url.to.file.which/not.exist" onerror=window.location("http://www.google.com");>

If the file fails to load, then the page should redirect to Google...but it does nothing.

Is it a syntax issue ? Thanks...


See More: Problem with onerror redirect script

Report •

#1
January 2, 2014 at 12:00:05

Report •
Related Solutions


Ask Question