FlightAware Live Flight Tracking
| Login | Tuesday 08:53PM EDT

New Registration (It's free!) | Forgot Username/Password | Cancel

Flight Tracker






iconFlightAware > Squawks > How to embed "Squawk This"

Simple HTML

To embed a FlightAware squawk box into a webpage, put the following code in your HTML:

<script src="http://flightaware.com/squawks/squawkbox.js"></script>

The Javascript code will pull the referer URL from the browser to squawk and the FlightAware code will automatically appear and update.

Advanced HTML/JS

You can optionally override the URL, define the category and/or define the description by setting variables using the following template, before invoking the squawkbox.js code shown above.

Here's an example:

<script>
 squawk_url='http://flightaware.com/live/flight/AAL1433/history/20060401/1414Z/KTPA/KDFW'
 squawk_title="4/10/07 Flight of AAL1433"
</script>
<script src="http://flightaware.com/squawks/squawkbox.js"></script>