| Forums | Email a Colleague | FAQ |
|
Dr. Website® Archives 2002June 6, 2002
I have a problem with my chatting room, in this case i would like to detect weather my opposite chat member has leaved the chat room, just say the member close the chat window (new open window than its main window) and i want to detect if the popup window has closed or not. Could you help how to do this. thank you, Answer: --Dr.Website Question: Answer: if (top == self) self.location.href = "theframeset.html"; Dear Dr. WebsiteŽ: I'd like to be able to have a user click on a link to execute a query, using a URL that points to a government search engine, and I'd like the results to pop up in a window when the user clicks on the link. Is this possible? You can use a function accompanied by a JavaScript link to open a new window that contains the results of the query: <SCRIPT LANGUAGE="JavaScript"> <!--// function openit(sURL){ newwindow=open(sURL,"newwin","scrollbars=yes,toolbar=no,directories=no,menubar=no, resizable=yes,status=yes,width=600,height=500"); } // </SCRIPT> Use a JavaScript link to the function, like this:
<A HREF="javascript:openit('http://www.sec.gov/cgi-bin/srch-edgar?Cube+adj+Microsystems')">open results window</A>
--Dr.Website
Question: Answer: <style> A:link { background: black; color: white; } A:visited { background: black; color: yellow; } A:active { background: black; color: cyan; } </style> and like this before the second:
<style>
A:link { background: white; color: blue; }
A:visited { background: white; color: red; }
A:active { background: white; color: brown; }
</style>
--Dr.Website ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|