<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1025895" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1025895</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/popup-js-file#comment-1156658</link>
    <description> &lt;p&gt;Thats it TNX!&lt;/p&gt;
&lt;p&gt;I didnt know that either way I must have some code in head section...&lt;br /&gt;
Its realy good that this code is &quot;light&quot; one so it can be used with or without ext .js file...&lt;br /&gt;
I will use external.js because I will use it on several pages...&lt;/p&gt;
&lt;p&gt;TNX for the solution...  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 14 Aug 2004 15:29:46 +0000</pubDate>
 <dc:creator>Shile</dc:creator>
 <guid isPermaLink="false">comment 1156658 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/popup-js-file#comment-1156652</link>
    <description> &lt;p&gt;All you need to do is have your script that creates your pop up window (it doesn&#039;t matter if it&#039;s in the page or an external js file) and a way to access it.&lt;/p&gt;
&lt;p&gt;If you put the script on the page where you&#039;re using it you simply need to put &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script language=&amp;quot;Javascript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function openpopup(popurl){ &lt;br /&gt;winpops=window.open(popurl,&amp;quot;&amp;quot;,&amp;quot;width=400,height=400,&amp;quot;) &lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
in the document head.&lt;/p&gt;
&lt;p&gt;If you want it external you create your external js file...&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function openpopup(popurl){ &lt;br /&gt;winpops=window.open(popurl,&amp;quot;&amp;quot;,&amp;quot;width=400,height=400,&amp;quot;) &lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
save it as popup.js and link to it in the head section of your document using&lt;br /&gt;
&lt;code&gt;&amp;amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;popup.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;amp;gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&#039; &lt;/p&gt;
&lt;p&gt;Your links wouldn&#039;t change.&lt;br /&gt;
The important bit is you have to put something in the head section of the document whether it&#039;s the whole script or just the link to it so your page can find the javascript code.  Making scripts you use a lot external is really the best way to go.&lt;/p&gt;
&lt;p&gt;Hope that helps!&lt;/p&gt;
&lt;p&gt;PS: the &quot;http://www.xxx.com&quot; part of your link is just the page you want to open in the pop up window, so there&#039;s no reason to change your links just because the script is external.&lt;/p&gt;
 </description>
     <pubDate>Sat, 14 Aug 2004 14:43:46 +0000</pubDate>
 <dc:creator>KarenArt</dc:creator>
 <guid isPermaLink="false">comment 1156652 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/popup-js-file#comment-1156649</link>
    <description> &lt;p&gt;Yes and No..  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt; ...  This code means that I will have to make as many .js files as I have links that I want to open in PopUp.&lt;/p&gt;
&lt;p&gt;I found some code that is working Ok but its still &quot;All in document&quot; type...&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;//www.xxx.com/&amp;#039;)&quot;&gt;whatever&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;With this code I can have only one .js file and I change url direct in the link..that is what I need.&lt;br /&gt;
I am working of making it work with external .js but if you are quicker and know better please post.&lt;/p&gt;
 </description>
     <pubDate>Sat, 14 Aug 2004 14:19:57 +0000</pubDate>
 <dc:creator>Shile</dc:creator>
 <guid isPermaLink="false">comment 1156649 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/popup-js-file#comment-1156648</link>
    <description> &lt;p&gt;All you need to do is have your seperate .js file (make sure you take out the &quot;&amp;lt;script&amp;gt;&quot; and &quot;&amp;lt;/script&amp;gt;&quot;) and link to it with&lt;br /&gt;
&lt;code&gt;&amp;amp;lt;script language=&amp;quot;javascript&amp;quot; src=&amp;quot;NAME of Script.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;amp;gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&#039; &lt;/p&gt;
&lt;p&gt;Is that what you were wanting?&lt;/p&gt;
 </description>
     <pubDate>Sat, 14 Aug 2004 13:53:51 +0000</pubDate>
 <dc:creator>KarenArt</dc:creator>
 <guid isPermaLink="false">comment 1156648 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
