Make your own free website on Tripod.com

Scripts | JavaScript Tutorials | JavaScript Reference | Applets | DHTML | Design | Freewarejava

spacer.gif (810 bytes)

Home / Free JavaScripts / Windows, remotes, frames / Here

Cut & Paste Remote Control
Credit: George, host

Description: A remote control that loads links into the main window.

Example:

Directions:

Step 1: Insert the following code into the <body> of the MAIN page (the page that will launch the remote:

<script>
<!--
function remote(){
/*Credit: JavaScript Kit www.javascriptkit.com more JavaScripts here.*/
win2=window.open("remote.htm","","width=150,height=350,scrollbars")
win2.creator=self
}
//-->
</script>
<form>
<input type="button" value="Launch remote!" onClick="remote()">
</form>

Step 2: Copy the below code and save it as remote.htm. This is the file you should edit- simply change the URLs in function remote2 below to your own:

<html>
<head>
<title>Remote Control</title>
<script>
<!--
function remote2(url){
window.opener.location=url
}
//-->
</script>
</head>

<body bgcolor="ffffff">
<div align="left">

<table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFF00">
<tr>
<td width="100%"><p align="center"><strong><big><font face="Arial">Remote Control</font></big></strong></td>
</tr>
</table>
</div>

<p align="left"><font face="Arial" size="2"><a
href="javascript:remote2('../javaindex.htm')"><strong>JavaScript Tutorials</strong></a></font></p>

<p align="left"><font face="Arial"><a href="javascript:remote2('../howto/webbuild.htm')"><strong><small>Web
building tutorials</small></strong></a></font></p>

<p align="left"><a href="javascript:remote2('../cutpastejava.htm')"><font face="Arial"
size="2"><strong>Free JavaScripts</strong></font></a></p>

<p align="left"><a href="javascript:remote2('../java/javafront.htm')"><small><font
face="Arial"><strong>Free Java applets</strong></font></small></a></p>

<p align="left"><font face="Arial" size="2"><a
href="javascript:remote2('../frontpage.htm')"><strong>FrontPage Tutorials</strong></a></font></p>

<p align="left"><a href="javascript:remote2('../backgr.htm')"><font face="Arial" size="2"><strong>Web
Graphics</strong></font></a></p>

<p align="left"><a
href="javascript:remote2('http://www.javascriptkit.com/script/cut105.htm')"><font
face="Arial" size="2"><strong>Back to script</strong></font></a></p>
</body>
</html>

 


Copyright 1997-2006 JavaScript Kit. NO PART may be reproduced without author's permission.

CSS Library | JavaScript & DHTML Menus | CSS Drive  | Java Online Blackjack | Web hosting Search | Web Development | Cheap Printer Ink