如何获取mozilla firefox浏览器窗口的地址? [英] How to get address of mozilla firefox browser window?
问题描述
我的问题是,我的项目中有超过2个浏览器窗口打开..如何使用javascript获取每个窗口的地址????
这是浏览器聊天窗口的地址..并且有超过2个窗口可供聊天..每个窗口由UN = Name区分。地址栏中的值...我如何得到每个窗口的地址并比较每个地址取决于UN的值...
http://192.168.100.6/Demo/SB /ChatWindow.aspx?UN=kunal
my problem is that, there are more than 2 browser window are open in my project.. how to get the adderess of each window using javascript????
This is the address of browser chatting window.. And there are more than 2 window are open for chatting.. Each window differentiated by "UN=Name" value in address bar... how i get the address of each window and compare each address depend on tha value of "UN"...
http://192.168.100.6/Demo/SB/ChatWindow.aspx?UN=kunal
推荐答案
此链接帮助我..
http://www.w3schools.com/jsref/obj_window.asp [ ^ ]
谢谢......
This Link help me..
http://www.w3schools.com/jsref/obj_window.asp[^]
Thank you...
要获取浏览器窗口的地址,请尝试以下代码。
To get address of browser window try below code.
<script>
document.write(location.href);
</script>
这可能会有所帮助。
This may help.
这篇关于如何获取mozilla firefox浏览器窗口的地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!