Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 11.02.2004, 08:42   #1
Младенец
 
Join Date: 11 2002
Location: Skofja Loka , Slovenia
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default Sending variables from one window to another

How to send variables from one window to another using Javascript !
I want to send variable "pic" from main page to second page , and the second page must open the picture number 5 if pic=5 or picture nuber 4 if pic=4
Reply With Quote
Old 12.02.2004, 05:34   #2
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Use GET method (ex. myfile.html?id=4), and then split location string with help of javascript and get id value.
Manual is here http://developer.netscape.com/docs/m...avascript.html
Reply With Quote
Old 12.02.2004, 08:29   #3
Младенец
 
Join Date: 11 2002
Location: Skofja Loka , Slovenia
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

How to get url of current document ?

Last edited by x.ice; 12.02.2004 at 10:51.
Reply With Quote
Old 12.02.2004, 10:51   #4
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Sranic avel el ban chem asi, ete der ches gtel

http://devedge.netscape.com/library/.../location.html
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 21:16.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.