[Javascript] Passing variable in javascript

Jefferis Peterson jefferis at petersonsales.net
Tue Oct 1 15:56:36 CDT 2002


I'm trying to use an onload behavior to create a resized window, but when I
do, I'm losing the variable passed to the page from php.

Anyway to preserve the variable through javascript and pass it back to php
when the window opens?

> <HTML>
> <HEAD>< 
 
 
> <TITLE>Large View of <?php echo $img; ?></TITLE>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"></HEAD>
> <body onLoad="self.resizeTo(550,500), self.moveTo(100,200), toolbar=0,
> status=0" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0"
> bgcolor="black" text="#FFFFFF">
> 
> <DIV align="center">
> <IMG src="/<?php echo $img; ?>"><br>
> 
 
> </BODY>
> </HTML>
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.net
Tel . 724-458-7169
ICQ 19112253

http://www.Slippery-Rock.com - 7,000 hits per year




More information about the Javascript mailing list