473,411 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

How to Access the Gobal variable from page to page?

Hi.
I have two separate page 1 is test.js and test.html. In test.js i created one window with the help of window.open() method something like var p = window.open(url); I want p value in test.html page. how should i? and i am able to open a window. but i want the value of p.

Please help me..

Thanks..

Ashwath.
Sep 12 '06 #1
1 1143
PLA
44
Hi.
I have two separate page 1 is test.js and test.html. In test.js i created one window with the help of window.open() method something like var p = window.open(url); I want p value in test.html page. how should i? and i am able to open a window. but i want the value of p.

Please help me..

Thanks..

Ashwath.

In the HEAD section of the caller

Expand|Select|Wrap|Line Numbers
  1. <script LANGUAGE="JavaScript">
  2.   var p;
  3.   function wop ()
  4.   {
  5.     p = window.open("C:\\test.html","toto");
  6.   }
  7. </script>
in the BODY section of the callee

Expand|Select|Wrap|Line Numbers
  1. <script LANGUAGE="JavaScript">
  2.   if (opener)
  3.     alert ("opener.p = " + opener.p);
  4. </script>
Sep 13 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ajikoe | last post by:
I have code like this: class A: def __init__(self,j): self.j = j def something(self): print self.j print i # PROBLEM is here there is no var i in class A but it works ???
14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
18
by: MuZZy | last post by:
Hi, I got a situation here :) an dwonder if someone can help me. I have an MDI app and say, the child form has a button, clicking on which calls a database transaction - grabbing a lot of tables...
2
by: paul meaney | last post by:
All, myself and another developer have been staring blankly at a screen for the past 48 hours and are wondering just what stunningly obvious thing we are missing. We are trying to load up 2...
2
by: P K | last post by:
I am using server.transfer for a website being developed in vs.net 2005 And I need to get the posted values after server.transfer. For this I set the second parameter "true" in the transfer...
2
by: Corey B | last post by:
Is there a way for an instance of a custom class to access an ASPX page level variable? I know that I can access a Session variable from within a class using the following code: myClassVar =...
0
by: kentgorrell | last post by:
Further to an earlier post I have made progress and can now display a DIB (Device Independent Bitmap) on a VB6 form using this code. Set Field = Adodc1.Recordset.Fields.Item("Student_Photo") ...
7
by: tshad | last post by:
How do you hide an asp.net object and still be able to access it? I had my email in a session variable, but you can't access the session variable from Javascript (I don't think - since Javascript...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.