
<?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>merill.net &#187; HTML</title>
	<atom:link href="http://merill.net/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://merill.net</link>
	<description>My utmost for His highest, my best for His glory</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:02:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Uncanny Disappearing Window</title>
		<link>http://merill.net/2003/12/the-uncanny-disappearing-window/</link>
		<comments>http://merill.net/2003/12/the-uncanny-disappearing-window/#comments</comments>
		<pubDate>Tue, 16 Dec 2003 12:41:48 +0000</pubDate>
		<dc:creator>Merill Fernando</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">/post/2003/12/The-Uncanny-Disappearing-Window.aspx</guid>
		<description><![CDATA[How do you programmatically close a browser window when you didn&#8217;t open it? Of course, everybody knows you can&#8217;t. If they don&#8217;t know that, they&#8217;re novice developers and some seasoned veteran will set them straight&#8230; gently or otherwise. Well, this week one of my clients &#8212; whose intranet app opens in a specially formatted window [...]]]></description>
			<content:encoded><![CDATA[<p><body xmlns="http://www.w3.org/1999/xhtml"></p>
<div class="Section1">
<p>
            How do you programmatically close a browser window when you didn&#8217;t open it? Of course,<br />
            everybody knows you can&#8217;t. If they don&#8217;t know that, they&#8217;re novice developers and<br />
            some seasoned veteran will set them straight&#8230; gently or otherwise.
        </p>
<p>
            Well, this week one of my clients &#8212; whose intranet app opens in a specially formatted<br />
            window &#8212; told me they didn&#8217;t want two windows just to start one application. I had<br />
            very little success removing the toolbars from an existing window, and my vast web<br />
            development experience told me that I had no other option. Rather, I didn&#8217;t until<br />
            a suggestion from a fellow member of the LaTech JavaScript list altered my perspective<br />
            and resulted in the script I&#8217;m about to show you.
        </p>
<p>
            All you need to start the magic is to assign a window to the opener property of the<br />
            current window. If this attribute is not set, the browser will realize that the current<br />
            window is not open to your manipulation and nothing will happen.
        </p>
<p>
            <span style=';font-family: "Courier New"'>&#160;&#160;&#160;&#160;&#160; &lt;SCRIPT<br />
            LANGUAGE=&#8221;JavaScript&#8221;&gt;<br />
            &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; window.opener =<br />
            top;<br />
            &#160;&#160;&#160;&#160;&#160; &lt;/SCRIPT&gt;</span>
        </p>
<p>
            [<a href="http://aspalliance.com/333">Read more</a>]
        </p>
</p></div>
<p></body></p>
]]></content:encoded>
			<wfw:commentRss>http://merill.net/2003/12/the-uncanny-disappearing-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Trick</title>
		<link>http://merill.net/2003/12/javascript-trick/</link>
		<comments>http://merill.net/2003/12/javascript-trick/#comments</comments>
		<pubDate>Fri, 12 Dec 2003 01:00:19 +0000</pubDate>
		<dc:creator>Merill Fernando</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">/post/2003/12/Javascript-Trick.aspx</guid>
		<description><![CDATA[Did you know that you can execute javascript statements against a web page, just like using the Immediate window in Visual Basic 6? I just learnt this today. Browse to a web page that has a disabled textbox and type this (replace the form and textbox names) in the address bar and hit enter. javascript:void(document.Form1.txtBox1.disabled [...]]]></description>
			<content:encoded><![CDATA[<p><body xmlns="http://www.w3.org/1999/xhtml"></p>
<div class="Section1">
<p>
            Did you know that you can execute javascript statements against a web page, just like<br />
            using the Immediate window in Visual Basic 6? I just learnt this today.
        </p>
<p>
            Browse to a web page that has a disabled textbox and type this (replace the form and<br />
            textbox names) in the address bar and hit enter.
        </p>
<p>
            <font color="black"><span style='; font-family:"Courier New";color:black'>javascript:void(document.Form1.txtBox1.disabled<br />
            = false)</span></font>
        </p>
<p>
            Presto you have an enabled textbox! Think of all the fun you can have on web sites<br />
            that only have client side validation?
        </p>
</p></div>
<p></body></p>
]]></content:encoded>
			<wfw:commentRss>http://merill.net/2003/12/javascript-trick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

