We can override the built functions (eg: window.open, window.close etc) with our own functions.
<script language = 'javascript'>
function MyownOpen()
{
var args = MyownOpen.arguments;
if (args.length)
alert(args[0]);
}
window.open = MyownOpen;
</script>
<a href = "#" onclick = "window.open('http://hspharic.blogspot.com');" >
My blog </a>
No comments:
Post a Comment