Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The only application I have seen that can do that is <a href="http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7d85.html" rel="nofollow noreferrer">AIR</a>. That said, you can do <a href="https://stackoverflow.com/questions/6293393/reposition-drop-down-menu-if-near-edge-of-window">edge detection</a> and open the iframe content in a new window when it hits the edge if you know the URL</p> <p><a href="http://jsfiddle.net/mplungjan/dEemD/" rel="nofollow noreferrer">jsFiddle</a> and accompanying <a href="http://jsfiddle.net/mplungjan/dEemD/show" rel="nofollow noreferrer">DEMO</a> - as always window.open assumes you allow popups from the site</p> <p>using jQuery UI draggable:</p> <pre class="lang-js prettyprint-override"><code>$("#container").draggable({ drag: function(event, ui) { var offsetXPos = parseInt( ui.offset.left ); var offsetYPos = parseInt( ui.offset.top ); $("#coord").text(offsetXPos+'x'+offsetYPos); if (offsetXPos===0 || offsetYPos===0) { // be careful with &lt;= since it may trigger many windows $("#container").hide(); window.open('http://msn.com','_blank'); } } }); </code></pre> <pre class="lang-html prettyprint-override"><code>&lt;div id="container"&gt; &lt;div id="handle"&gt;Drag me &lt;span id="coord"&gt;&lt;/span&gt;&lt;/div&gt; &lt;iframe src="http://msn.com/" frameborder=no&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <pre class="lang-css prettyprint-override"><code>#container { left:100px; top:100px; width:500px } #handle { border:1px solid black; height:40px, width:100%; background-color:lightblue; cursor:move; pointer:move} iframe { width:100%; border:0 } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload