faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 9 people (33%) answered Yes
Recently 3 of 9 people (33%) answered Yes

Entry

How do you check if a button is pressed in another window that you popup from a different site?

Apr 6th, 2008 19:08
ha mo, Mark Pratt, Avraham Levian,


This is a big no-no in Javascript and is known as cross-site scripting. 
This is to stop security breaches.
You may be OK if your site is hosted on the same host but you have 
different domain names e.g. you have www.mysite.com and www.mysite2.com 
hosted on www.myhost.com as www.myhost.com/~mysite and 
www.myhost.com/~mysite2 or similar - in which case use the fully 
qualified URLs that exist on the same domain - otherwise you cant do 
this!
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com