<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; Browser Window</title>
	<atom:link href="http://newsourcemedia.com/blog/category/javascripts/browser-window/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Javascript Center Popup Window</title>
		<link>http://newsourcemedia.com/blog/center-popup-window/</link>
		<comments>http://newsourcemedia.com/blog/center-popup-window/#comments</comments>
		<pubDate>Sun, 25 Jul 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browser Window]]></category>
		<category><![CDATA[javascript pop up window generator]]></category>
		<category><![CDATA[pop up window]]></category>
		<category><![CDATA[pop up windows]]></category>
		<category><![CDATA[popup window]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/07/24/center-popup-window/</guid>
		<description><![CDATA[How to center a chromeless pop-up window in most browsers. Now create a link with a hash in the href attribute and add the javascript call on a onClick command. Popup Be sure to change the url "freepennysaver.com" to your &#8230; <a href="http://newsourcemedia.com/blog/center-popup-window/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[How to center a chromeless pop-up window in most browsers.
<span id="more-188"></span>
<pre lang="html">
<script language="javascript" type="text/javascript">
var win= null;
function OpenNewWindow(mypage,w,h,myname){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,toolbar=no'
win=window.open(mypage,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
// end script here -->
</script>
</pre>

Now create a link with a hash in the href attribute and add the javascript call on a onClick command.
<pre lang="html">
<a href="#" onclick="OpenNewWindow('http://freepennysaver.com/','710','548','Loading');" > Popup </a></pre>


Be sure to change the url "freepennysaver.com" to your url.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/center-popup-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popup Chromeless Window</title>
		<link>http://newsourcemedia.com/blog/popup-chromeless-window/</link>
		<comments>http://newsourcemedia.com/blog/popup-chromeless-window/#comments</comments>
		<pubDate>Wed, 26 May 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browser Window]]></category>
		<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[chromeless]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/05/25/popup-chromeless-window/</guid>
		<description><![CDATA[An easy to use Javascript Popup Chromeless Window. Introduction: Here's a simple but flexible javascript popup function. This effect is known as a chromeless window. This usually means that the window is resized and the browser features (nav buttons, address &#8230; <a href="http://newsourcemedia.com/blog/popup-chromeless-window/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[An easy to use Javascript Popup Chromeless Window.
<span id="more-211"></span>
<span class="contitle">Introduction:</span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">Here's a simple                        but flexible javascript popup function. This effect is known                        as a chromeless window. This usually means that the window                        is resized and the browser features (nav buttons, address                        field, scrollbars, resize handle, and favorites) are hidden                        or altered.</span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span>
<p class="contitle"><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">Javascript Source Code:</span></p>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span>

<span class="sourceCODE"><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">&lt;script language="javascript"&gt;
&lt;!--
var openwin;
function popupwin(url,myname,w,h,s)
{
settings='height=' h ',width=' w ',scrollbars=' s ',toolbar=no,location=no,status=no,menubar=no, resizable=no,dependent=no'
openwin=window.open(url,myname,settings);
}// --&gt;
&lt;/script&gt;</span></span>

<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span>

<span class="contitle"><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">HTML Source Code:</span></span><span class="sourceCODE"></span>

<span class="sourceHTML"><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">&lt;p&gt;
Click here to
&lt;a href="#" onClick="popupwin('/index.php','Loading','400','400','yes');"&gt;
Open Popup Window&lt;/a&gt; the pop up.
&lt;/p&gt; </span></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"> </span>
<p class="contitle">Adding it to your site:</p>

First create a variable called "<span class="sourceCODE">openwin</span>".                        Next create a function called "<span class="sourceCODE">popupwin()</span>".                        This does all the work. To configure the code for your site,                        just change the values inside the javascript "<span class="sourceCODE">settings</span>"                        line and the html link "<span class="sourceHTML">onClick</span>"                        values. And that's it.

<a href="../../Tutorials/JS-Popup%20Window.html" target="_blank">Click                        here for a working sample</a>.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/popup-chromeless-window/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Breaking out of frames</title>
		<link>http://newsourcemedia.com/blog/breaking-out-of-frames/</link>
		<comments>http://newsourcemedia.com/blog/breaking-out-of-frames/#comments</comments>
		<pubDate>Tue, 28 Oct 2003 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browser Window]]></category>
		<category><![CDATA[Javascripts]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2003/10/27/breaking-out-of-frames/</guid>
		<description><![CDATA[Want to make sure your web pages are not included in other website frames? Well use this break_out_frame code to stop the madness. Place the following code in the header &#60;script language="JavaScript" type="text/javascript"&#62; &#60;!-- function break_out_frames() { if (top.location != &#8230; <a href="http://newsourcemedia.com/blog/breaking-out-of-frames/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Want to make sure your web pages are not included in other website frames? Well use this break_out_frame code to stop the madness.
<span id="more-238"></span>

Place the following code in the header

<span style="color: #663399;">&lt;script language="JavaScript" type="text/javascript"&gt;
&lt;!--
function break_out_frames()
{
if (top.location != location) {
top.location.href = document.location.href ;
}
}
--&gt;
&lt;/script&gt;</span>

I would prefer to place the javascript function into a separate file with a    name like "functions.js". This is how the code would look inside the    "functions.js" file:

<span style="color: #663399;">function break_out_frames()
{
if (top.location != location) {
top.location.href = document.location.href ;
}
}
</span>
To include the javascript function file into your pages, place the following    code in the headers:

<span style="color: #663399;">&lt;script src="functions.js" language="JavaScript"    type="text/javascript"&gt;
&lt;/script&gt; </span>

To trigger the breakout of frame javascript function, using ether of the above    techniques, add the following code to the body tag:

<span style="color: #663399;">&lt;body onload="break_out_frames()"&gt;</span>

That's it.

<a href="http://www.amazon.com/exec/obidos/external-search/002-4850274-6876819?mode=books&amp;keyword=javascripts&amp;Go=Go&amp;tag=newsourcemedi-20">For    a list of Books on Javascript for Beginners and Advance Coders click here!</a>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/breaking-out-of-frames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
