<html> <body> <script src="../../static/jquery-2.0.3.min.js"></script> <script type="text/javascript" charset="utf-8"> var port = location.search.substr("?port=".length); document.write("<img src='http://127.0.0.1:" + port + "/logo.png' />"); </script> </body> </html>