<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    
                        <title>milov.nl: javascript pop-ups using this.href</title>
          <link>http://milov.nl/474</link>
          <description>Weblog/photolog of Milo Vermeulen</description>
          <lastBuildDate>Tue, 10 Nov 2009 12:58:51 GMT</lastBuildDate>
                                <item>
              <title>Imu</title>
              <link>http://milov.nl/474#comment12548</link>
              <guid>http://milov.nl/474#comment12548</guid>
              <pubDate>Tue, 10 Nov 2009 12:58:51 GMT</pubDate>
              <description>This is great, I use this to open 40 000 porn pop-ups at all my clients computers. Thank you!</description>
            </item>
                      <item>
              <title>someOne</title>
              <link>http://milov.nl/474#comment12397</link>
              <guid>http://milov.nl/474#comment12397</guid>
              <pubDate>Thu, 08 Jan 2009 15:57:47 GMT</pubDate>
              <description>like i didnt know that allready :/</description>
            </item>
                      <item>
              <title>RskpsVVMSlXGDP</title>
              <link>http://milov.nl/474#comment12096</link>
              <guid>http://milov.nl/474#comment12096</guid>
              <pubDate>Thu, 05 Jun 2008 13:58:27 GMT</pubDate>
              <description>tickets_5.txt;2;2</description>
            </item>
                      <item>
              <title>yahoo.com,fuckthegovernment,Alex</title>
              <link>http://milov.nl/474#comment8346</link>
              <guid>http://milov.nl/474#comment8346</guid>
              <pubDate>Sun, 26 Feb 2006 20:56:58 GMT</pubDate>
              <description>.^..^.
&lt;0&gt;&lt;0&gt;
..&lt;&gt;
((SWEET))</description>
            </item>
                      <item>
              <title>hotremoveforsendingmail.com,sager_svend,eSKape</title>
              <link>http://milov.nl/474#comment8224</link>
              <guid>http://milov.nl/474#comment8224</guid>
              <pubDate>Thu, 09 Feb 2006 07:37:43 GMT</pubDate>
              <description>.. (continuing) ..
As url say, target is allowed in Transitional and Frameset, but not in Strict.</description>
            </item>
                      <item>
              <title>hotremoveforsendingmail.com,sager_svend,eSKape</title>
              <link>http://milov.nl/474#comment8223</link>
              <guid>http://milov.nl/474#comment8223</guid>
              <pubDate>Thu, 09 Feb 2006 07:35:53 GMT</pubDate>
              <description>#36 Joy
I guess the only way to open links in another frame is to use targets. But target is okay, they are XHTML.. but not Strict. Maybe you are not using the right DTD? You are using framesets, so you should use XHTML Frameset.
As http://www.w3schools.com/tags/tag_a.asp say,</description>
            </item>
                      <item>
              <title>riccardo</title>
              <link>http://milov.nl/474#comment7649</link>
              <guid>http://milov.nl/474#comment7649</guid>
              <pubDate>Sat, 12 Nov 2005 02:06:22 GMT</pubDate>
              <description>how about the same thing with forms?</description>
            </item>
                      <item>
              <title>mayglee</title>
              <link>http://milov.nl/474#comment7647</link>
              <guid>http://milov.nl/474#comment7647</guid>
              <pubDate>Fri, 11 Nov 2005 07:02:54 GMT</pubDate>
              <description>how to make a popup onclick with style, with background image and so on?

good page, thanx</description>
            </item>
                      <item>
              <title>eapen</title>
              <link>http://milov.nl/474#comment7498</link>
              <guid>http://milov.nl/474#comment7498</guid>
              <pubDate>Tue, 25 Oct 2005 19:59:17 GMT</pubDate>
              <description>doesnt work for me either in firefox. it probably has to do with  one of my extensions, but its a pain to go through each one.</description>
            </item>
                      <item>
              <title>Milo</title>
              <link>http://milov.nl/474#comment7319</link>
              <guid>http://milov.nl/474#comment7319</guid>
              <pubDate>Tue, 27 Sep 2005 10:30:39 GMT</pubDate>
              <description>Nope, you just need to access moretext via the getElementById-function, like so:

onclick=&quot;document.getElementById('moretext').style.display='inline'; return false;&quot;

This should work in IE, Mozilla and Opera.</description>
            </item>
                      <item>
              <title>gmail.com,askubusku,seema</title>
              <link>http://milov.nl/474#comment7318</link>
              <guid>http://milov.nl/474#comment7318</guid>
              <pubDate>Tue, 27 Sep 2005 10:28:04 GMT</pubDate>
              <description>&lt;p&gt;this is some text &lt;a href=&quot;&quot; onclick=&quot;moretext.style.display='inline'; return false;&quot;&gt;more text&lt;/a&gt;&lt;/p&gt;
&lt;p id=&quot;moretext&quot;&gt;this is some more text&lt;/p&gt;

It works great in explorer, but doesnt work in opera and mozilla.

I guess its the return false that is not working.</description>
            </item>
                      <item>
              <title>Joy</title>
              <link>http://milov.nl/474#comment7288</link>
              <guid>http://milov.nl/474#comment7288</guid>
              <pubDate>Wed, 21 Sep 2005 23:41:19 GMT</pubDate>
              <description>How can I use window.open(this.href...
with frames? I have the &lt;a href=&quot;offer.html&quot;.. in a frame and when i click it, offer.html is open in the self frame and not in a popup window.</description>
            </item>
                      <item>
              <title>sandra</title>
              <link>http://milov.nl/474#comment6957</link>
              <guid>http://milov.nl/474#comment6957</guid>
              <pubDate>Fri, 01 Jul 2005 10:39:45 GMT</pubDate>
              <description>Thanks gobalopper! this helped me great!!</description>
            </item>
                      <item>
              <title>Symen</title>
              <link>http://milov.nl/474#comment5972</link>
              <guid>http://milov.nl/474#comment5972</guid>
              <pubDate>Wed, 01 Dec 2004 08:07:10 GMT</pubDate>
              <description>&gt;fargo

It works in my firefox, opera and ie. You must have made a typo..

But anyway, good article milovrs!</description>
            </item>
                      <item>
              <title>milov</title>
              <link>http://milov.nl/474#comment4707</link>
              <guid>http://milov.nl/474#comment4707</guid>
              <pubDate>Tue, 11 May 2004 21:22:51 GMT</pubDate>
              <description>Really? Even with the &quot;return false;&quot; at the end?</description>
            </item>
                      <item>
              <title>fargo</title>
              <link>http://milov.nl/474#comment4706</link>
              <guid>http://milov.nl/474#comment4706</guid>
              <pubDate>Tue, 11 May 2004 21:16:55 GMT</pubDate>
              <description>Does not seem to work for me (tested in Mozilla Firefox and Opera 6.12). It opens the new window but also the current window jumps to the url present between the quotes in href=&quot;&quot;.</description>
            </item>
                      <item>
              <title>wooki</title>
              <link>http://milov.nl/474#comment4565</link>
              <guid>http://milov.nl/474#comment4565</guid>
              <pubDate>Sat, 03 Apr 2004 19:38:00 GMT</pubDate>
              <description>what. when people turn on their computer?</description>
            </item>
                      <item>
              <title>Jay</title>
              <link>http://milov.nl/474#comment4421</link>
              <guid>http://milov.nl/474#comment4421</guid>
              <pubDate>Wed, 10 Mar 2004 05:35:53 GMT</pubDate>
              <description>Great tip.  Exactly what I needed.  Thanks!</description>
            </item>
                      <item>
              <title>earl-ku</title>
              <link>http://milov.nl/474#comment4251</link>
              <guid>http://milov.nl/474#comment4251</guid>
              <pubDate>Mon, 09 Feb 2004 12:41:28 GMT</pubDate>
              <description>thanks thanks thanks</description>
            </item>
                      <item>
              <title>nyexotic</title>
              <link>http://milov.nl/474#comment4216</link>
              <guid>http://milov.nl/474#comment4216</guid>
              <pubDate>Thu, 29 Jan 2004 20:55:01 GMT</pubDate>
              <description>I want to make a pop up for my website with a picture as soon as they open my site &amp; another when people turn on their computer.  If someone can e-mail me a script that would be awesome.  thanks.....</description>
            </item>
                      <item>
              <title>Ich</title>
              <link>http://milov.nl/474#comment4108</link>
              <guid>http://milov.nl/474#comment4108</guid>
              <pubDate>Tue, 30 Dec 2003 14:44:20 GMT</pubDate>
              <description>Fuck you</description>
            </item>
                      <item>
              <title>Gobalopper</title>
              <link>http://milov.nl/474#comment3792</link>
              <guid>http://milov.nl/474#comment3792</guid>
              <pubDate>Sun, 02 Nov 2003 10:40:46 GMT</pubDate>
              <description>Try this hadlock:

&lt;a href=&quot;yourlink.html&quot; onclick=&quot;window.open(this.href,'blah','height=250,width=300,top=50,left=50,scrollbars=yes,titlebar=true'); return false;&quot;&gt;link text&lt;/a&gt;</description>
            </item>
                      <item>
              <title>yahoo.com,redjester,hadlock</title>
              <link>http://milov.nl/474#comment3697</link>
              <guid>http://milov.nl/474#comment3697</guid>
              <pubDate>Sun, 12 Oct 2003 17:41:12 GMT</pubDate>
              <description>hi how do you open this pop-up in a set size window?</description>
            </item>
                      <item>
              <title>FitzChivalry</title>
              <link>http://milov.nl/474#comment3588</link>
              <guid>http://milov.nl/474#comment3588</guid>
              <pubDate>Wed, 17 Sep 2003 11:13:57 GMT</pubDate>
              <description>I'm so glad that googling on &quot;href onclick&quot; led me to this site!</description>
            </item>
                      <item>
              <title>gfdh</title>
              <link>http://milov.nl/474#comment2828</link>
              <guid>http://milov.nl/474#comment2828</guid>
              <pubDate>Thu, 20 Feb 2003 10:39:23 GMT</pubDate>
              <description>ghgf</description>
            </item>
                      <item>
              <title>xxx.lt,akello,Akello</title>
              <link>http://milov.nl/474#comment2542</link>
              <guid>http://milov.nl/474#comment2542</guid>
              <pubDate>Mon, 23 Dec 2002 02:51:41 GMT</pubDate>
              <description>me@127.0.0.1's way doesn't work either :(</description>
            </item>
                      <item>
              <title>MidgetSniper</title>
              <link>http://milov.nl/474#comment1945</link>
              <guid>http://milov.nl/474#comment1945</guid>
              <pubDate>Wed, 18 Sep 2002 23:13:59 GMT</pubDate>
              <description>Thank you for the info.  I've been trying for 3 days now to get the page to stop refreshing everytime I wanted to post a comment.  I'm in process of building this site and that was a tremendous help.</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1875</link>
              <guid>http://milov.nl/474#comment1875</guid>
              <pubDate>Wed, 04 Sep 2002 11:16:15 GMT</pubDate>
              <description>holy multiple posting batman

sorry about that , blame mozilla , i only hit submit once :/</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1874</link>
              <guid>http://milov.nl/474#comment1874</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:13 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1873</link>
              <guid>http://milov.nl/474#comment1873</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:13 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1872</link>
              <guid>http://milov.nl/474#comment1872</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:12 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1871</link>
              <guid>http://milov.nl/474#comment1871</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:11 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1870</link>
              <guid>http://milov.nl/474#comment1870</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:11 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1869</link>
              <guid>http://milov.nl/474#comment1869</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:10 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1868</link>
              <guid>http://milov.nl/474#comment1868</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:10 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>127.0.0.1,me,sh0rtie</title>
              <link>http://milov.nl/474#comment1867</link>
              <guid>http://milov.nl/474#comment1867</guid>
              <pubDate>Wed, 04 Sep 2002 11:13:09 GMT</pubDate>
              <description>try
&lt;a href=&quot;&quot; onclick=&quot;document.getElementById('moretext').style.display='inline';return false&quot;&gt;blah&lt;/a&gt;</description>
            </item>
                      <item>
              <title>kesor</title>
              <link>http://milov.nl/474#comment1843</link>
              <guid>http://milov.nl/474#comment1843</guid>
              <pubDate>Sat, 31 Aug 2002 21:24:18 GMT</pubDate>
              <description>the  return false;  thingy doesnt quite work in opera (tested with 6.04).

I tried to expand text, like this :

&lt;p&gt;this is some text &lt;a href=&quot;&quot; onclick=&quot;moretext.style.display='inline'; return false;&quot;&gt;more text&lt;/a&gt;&lt;/p&gt;
&lt;p id=&quot;moretext&quot;&gt;this is some more text&lt;/p&gt;

It works great in explorer, but doesnt work in opera and mozilla.

I guess its the return false that is not working.</description>
            </item>
                      <item>
              <title>Tim Scarfe</title>
              <link>http://milov.nl/474#comment1501</link>
              <guid>http://milov.nl/474#comment1501</guid>
              <pubDate>Sun, 16 Jun 2002 19:39:32 GMT</pubDate>
              <description>Great Tip.

I don't like inline behaviour in the HTML element of my documents though, How about making it have a class of &quot;pop&quot;, and then having a seperate script run through the document at the end picking up all the elements and assigning the events?

De-gradable coding, isn't it so cool :)</description>
            </item>
                      <item>
              <title>zachariah</title>
              <link>http://milov.nl/474#comment989</link>
              <guid>http://milov.nl/474#comment989</guid>
              <pubDate>Thu, 21 Mar 2002 05:42:25 GMT</pubDate>
              <description>matt - target=&quot;_blank&quot; is not vaild xhtml which is the current verion of html</description>
            </item>
                      <item>
              <title>matt</title>
              <link>http://milov.nl/474#comment896</link>
              <guid>http://milov.nl/474#comment896</guid>
              <pubDate>Sun, 17 Feb 2002 17:01:32 GMT</pubDate>
              <description>If you're just opening a new window with out specifying any properties (window size etc.) then you should really be using TARGET=&quot;_blank&quot; instead of an onClick. That way even people with javascript turned of will get a new window.</description>
            </item>
                      <item>
              <title>charles</title>
              <link>http://milov.nl/474#comment717</link>
              <guid>http://milov.nl/474#comment717</guid>
              <pubDate>Fri, 04 Jan 2002 21:39:53 GMT</pubDate>
              <description>How do I also add the no-address/ noscroll and other elements to that tag?</description>
            </item>
                      <item>
              <title>Norse</title>
              <link>http://milov.nl/474#comment712</link>
              <guid>http://milov.nl/474#comment712</guid>
              <pubDate>Wed, 02 Jan 2002 20:57:50 GMT</pubDate>
              <description>Het niet ik been zocht dit ik ik de met wheerholdenit.</description>
            </item>
                      <item>
              <title>Joe Clark</title>
              <link>http://milov.nl/474#comment708</link>
              <guid>http://milov.nl/474#comment708</guid>
              <pubDate>Sun, 30 Dec 2001 20:40:49 GMT</pubDate>
              <description>Yeah, except you have to duplicate mouse functions with keyboard functions for accessibility. It's onkeyDown, I think, but I'm not an expert at this. Keep all the onClick stuff-- just add the keyboard support.</description>
            </item>
                      <item>
              <title>Jim</title>
              <link>http://milov.nl/474#comment704</link>
              <guid>http://milov.nl/474#comment704</guid>
              <pubDate>Fri, 28 Dec 2001 16:55:19 GMT</pubDate>
              <description>great tip, i too was looking for something that would work with js turned off.</description>
            </item>
                      <item>
              <title>pup</title>
              <link>http://milov.nl/474#comment284</link>
              <guid>http://milov.nl/474#comment284</guid>
              <pubDate>Tue, 14 Aug 2001 15:18:11 GMT</pubDate>
              <description>excellent tip.  i was looking for a nice backwards compatible way of doing this.</description>
            </item>
                      <item>
              <title>David</title>
              <link>http://milov.nl/474#comment283</link>
              <guid>http://milov.nl/474#comment283</guid>
              <pubDate>Tue, 14 Aug 2001 09:16:41 GMT</pubDate>
              <description>Dit zocht ik. Bedankt!</description>
            </item>
                      <item>
              <title>Marza</title>
              <link>http://milov.nl/474#comment282</link>
              <guid>http://milov.nl/474#comment282</guid>
              <pubDate>Mon, 13 Aug 2001 22:56:43 GMT</pubDate>
              <description>Goede tip, meteen gewijzigd. Ik stoorde me al aan het niet met de rechtermuisknop kunnen klikken.</description>
            </item>
                        
      </channel>
</rss>
