How to redirect URL on refresh in Angular?

Facebook Tab Redirect to URL??? Help HTML Coding?

  • I made a facebook tab with html coding to redirect it to a new url. The problem is instead of redirecting to the new url it opens the url inside facebook and the new website is a width of 1000px but the allowed space of a facebook tab is 800px so I get scroll bars. My question is there a code that will change the size of the new website to fit inside the tab? Or a code that will take you straight to the new url? Theres another FB app that will redirect you to a "click me" page then to the website after clicking but I dont want the click me page just a direct from "visit website" to the actual url. Ive tried several different codes and they all do the same thing. My current code is: "<script type="text/javascript"> if (top != self) top.window.location = 'http://www.dentallabinorangecounty.com/'; </script>" The tab in question is the "Visit Website" https://www.facebook.com/pages/Pearl-White-Dental-Arts/177354512367518 Thanks for the help.

  • Answer:

    You could try styling your website to fit inside the page by using CSS. For example: <style type="text/css"> body { width:100%; //or change these to exact pixels height:100%; } </style> Or the other thing you can try is: <script type="text/javascript"> window.open("URL HERE", "_top"); </script>

Tyler D. at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

You could try styling your website to fit inside the page by using CSS. For example: <style type="text/css"> body { width:100%; //or change these to exact pixels height:100%; } </style> Or the other thing you can try is: <script type="text/javascript"> window.open("URL HERE", "_top"); </script>

Tomjr

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.