Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ev = function(e) {
- return e || window.event || {};
- };
- $.reload = function() {
- window.location.reload();
- };
- $.back = function() {
- (!history.previous && window.opener) ? window.close() : history.back();
- };
- $.forward = function() {
- history.forward();
- };
- $.href = function(url, openwin) {
- if (url)
- ((openwin || $.ev().shiftKey) ? window.open(url) : window.location.href=url);
- else
- return window.location.href;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement