hi
What I want to do is print the URL of the window that's currently open by clicking on a link in my bookmarks bar. If the user has a few windows open as tabs in their browser, it should print the one that's currently being viewed or in front.
By clicking directly on this bookmarkt it means there is effectively no referring URL, and the history doesn't apply either (I don't think?).
This is what I've got which pops up the window but the href is coming up as undefined...
javascript:{void( prompt( document.write( window.location.href ) ,''))}
Can anyone help with this one?
Regan
What I want to do is print the URL of the window that's currently open by clicking on a link in my bookmarks bar. If the user has a few windows open as tabs in their browser, it should print the one that's currently being viewed or in front.
By clicking directly on this bookmarkt it means there is effectively no referring URL, and the history doesn't apply either (I don't think?).
This is what I've got which pops up the window but the href is coming up as undefined...
Code:
javascript:{void( prompt( document.write( window.location.href ) ,''))}
Can anyone help with this one?
Regan