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

Reply
 
Thread Tools

Sending variables from one window to another
Old 11.02.2004, 08:42   #1
Младенец
 
Join Date: 11 2002
Location: Skofja Loka , Slovenia
Posts: 19
Rep Power: 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

Old 12.02.2004, 05:34   #2
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 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

Old 12.02.2004, 08:29   #3
Младенец
 
Join Date: 11 2002
Location: Skofja Loka , Slovenia
Posts: 19
Rep Power: 0
Default

How to get url of current document ?

Last edited by x.ice; 12.02.2004 at 10:51.

Old 12.02.2004, 10:51   #4
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default

Sranic avel el ban chem asi, ete der ches gtel

http://devedge.netscape.com/library/.../location.html
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 15:39.
Top

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