Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As per the comments:</p> <blockquote> <p><em>and how can i specify window size? i want it a little smaller than the original page. also, can i make all links in the page, open in the SAME new window, of a smaller size?</em></p> </blockquote> <p>You can't use CSS or HTML to do this. You need to use JavaScript's <a href="https://developer.mozilla.org/en/DOM/window.open" rel="nofollow noreferrer"><code>window.open()</code></a>. You can get all links by <a href="https://developer.mozilla.org/en/DOM/element.getElementsByTagName" rel="nofollow noreferrer"><code>element.getElementsByTagName()</code></a> on <code>a</code> and you can determine the link's <code>class</code> attribute by <a href="http://developer.mozilla.org/en/docs/DOM:element.className" rel="nofollow noreferrer"><code>element.className</code></a>:</p> <pre><code>window.onload = function() { var links = document.getElementsByTagName('a'); for (var i = 0; i &lt; links.length; i++) { var link = links[i]; if (link.className == 'someClass') { link.onclick = function() { window.open(this.href, 'chooseYourName', 'width=600,height=400'); return false; } } } } </code></pre> <p>Or if you're already using <a href="http://jquery.com" rel="nofollow noreferrer">jQuery</a>, you can use <code>$('a.someClass')</code> to select all links which has the specified class <code>someClass</code>:</p> <pre><code>$(document).ready(function() { $('a.someClass').click(function() { window.open(this.href, 'chooseYourName', 'width=600,height=400'); return false; }); }); </code></pre> <p>The window's name as specified in <code>chooseYourName</code> will take care that all links are (re)opened in the same window. You also see that you can specify the width and height over there.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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