Freigeben über


"You are visiting a site outside of Hotmail. To return to Hotmail, close this browser window."

How many times do you email a Hotmail recipient with a link & when they click on the link, the new page opens with a frame at the top?  A lot.  Sometime's it's just annoying & other times the functionality on the destination page is affected.

When you have control of the page that you want to link to, you can include this code in the html:

<script type="text/javascript">
<!--
if (top.frames.length!=0) {
if (window.location.href.replace)
top.location.replace(self.location.href);
else
top.location.href=self.document.href;
}
// -->
</script>

But when you don't have control of the code, you can format the hyperlink to use a site that basically has the above script, plus a redirect command to your “real” destination site.

For example, if you email the link https://boston.com to someone in Hotmail, they'll get the frame around the new window when clicking on it.  But if you email them the link https://hyperurl.com?url=boston.com instead, they still wind up at Boston.com, but via HyperUrl.com which removes the frame before sending them on their merry way.

It's not perfect & granted, it's a little dorky, but it does work.  I'm all ears for improvement suggestions.  (The one that I already know is that for long links, it can cause problems.  To address that case, I'm building some pages where you can get an “ID” number instead of pasting in the whole URL.  For example, https://hyperurl.com?id=911 is just a mask for https://www2.cityofseattle.net/fire/realTime911/getRecsForDatePub.asp?action=Today&incDate=&rad1=des.

Comments