Un petit truc marrant pour Internet Explorer (testé sur la version 7.0) :
Ps: tentez d'actualiser votre page web... dis-donc rien n'y fait !
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 <html> <head> <title>Choose an url....</title> <script><!-- function changeUrl(url) { try { var win = window.open(changeUrl.url + url, "_self", null); win.onload=function() { alert('onload'); } } catch (ex) { alert(ex.toString()) } } changeUrl.url = "res://ieframe.dll/dnserror.htm#"; --></script> </head> <body> <form action="javascript:changeUrl(document.getElementById('newUrl').value)"> <input id="newUrl" type="text" value="http://www.google.com" /> <input id="submit" type="submit" value="Changer l'URL" /> </form> </body> </html>
Partager