This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Is it possible to check if the browser window is old or a new one. If i click on a link, the new page opens on the same window but if i right click the link and select "open in new window" it opens the page in a new window. is it possible to track this ?
thanks in advance , rajeev.
SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
You can track it from the page in the new window using the window.history object. After a few very cursory tests, it seems like window.history.length for a new window in Firefox will be 1, while it will be 0 in IE.
Joined: Aug 27, 2002
Thanks for the replies !!
I have few more questions. Please dont think that Im just posting my issues here without trying to find a solution
1. Is is possible to check if the user has clicked the referesh button on the browser. I mean, the page has been displayed afterwards if the user clicks the refresh button on the browser i want to display an alert message.
2. Is it possible to find the number of children of a parent window. if i right click on a link and opens the result in new window, can i find how many child windows has already been opened ?