Created
October 31, 2022 18:54
-
-
Save fadyosman/3dc303bd0e7ad9fdbec34d4e995ead76 to your computer and use it in GitHub Desktop.
JS Breakpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
function filter(F) { | |
F = unescape(F).replace(/\n/g, "").replace(/\r/g, "").replace(/\t/g, "").replace(/javascript:/ig, '').replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"'); | |
return F; | |
} | |
function locationHashChanged(e) { | |
var F = location.hash.substring(1); | |
F = filter(F); | |
document.getElementById("pageLoader").src = F; | |
} | |
</script> | |
</head> | |
<body onload="window.onhashchange = locationHashChanged;"> | |
<a href="#/page1.html">Load page1</a> | |
<a href="#/page2.html">Load page2</a> | |
<a href="#/page3.html">Load page3</a><br /> | |
</body> | |
<iframe id="pageLoader" width="1024" height="1024"></iframe> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment