spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs


JavaScript Tip of the Week for January 6, 1997: Source Code: The Universal Remote

The basic page that the remote will be launched from:

<HTML>
<HEAD><TITLE>Remote Launching Page</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
<!--

// The remote launching code.

function makeRemote() {
remote = window.open("","remotewin","width=350,height=400");
remote.location.href = "http://webreference.com/javascript/970106/remote.html";
    if (remote.opener == null) remote.opener = window; 
remote.opener.name = "opener";
}

//-->
</SCRIPT>
</HEAD>
<BODY>
This is a Page
<BR>
<A HREF = "javascript:makeRemote()">Open Remote</A>
</BODY>
</HTML>
The basic remote in "remote.html":
<HTML>
<HEAD><TITLE>Remote</TITLE>
</HEAD>
<BODY>
The Amazing Remote 
<P>
Links directed to the opener:
<BR>
<A TARGET = "opener" HREF = "index.html">Front Page</A>
<A TARGER = "opener" HREF = "tip_week_past.html">Tip Repository</A>
<BR>
Put a Form anywhere on this page, just make sure its target is "opener".
</BODY>
</HTML>

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint