Hi,
I have a button in my webpage. when this button clicks, the pop window will open.
Actually it works if i give url like this: http://localhost:52549/websitefolder/pagename.
when i type http://ipaddress/pagename or http://localhost/pagename in my browser, the webpage is coming but when i click the button, the pop up window is not coming.
Thanks
Darma
Loading

Iftikar HussainRank #423 · 5.9K reputationPosted Jun 20, 2013, 3:37 AM EDT
You can do this like below
<script type="text/javascript" language="javascript">
function open_win() {
var url = "http://" + location.host + "//pagename";
window.open(url);
}
script>
location.host will give you current domain name (i.e. localhost or ipaddress)
Regards,
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.
Ravi ShekharRank #673 · 3.6K reputationPosted Jun 20, 2013, 2:47 AM EDT
You hosted your application on iis or not???
Ravi ShekharRank #673 · 3.6K reputationPosted Jun 20, 2013, 2:48 AM EDT
You hosted your application on iis or not???
share your code here.
Sunny SharmaRank #223 · 11.1K reputationPosted Jun 20, 2013, 3:16 AM EDT
Suggest you share the code, so that we could have a better picture on your problem.
darma tejaRank #3,199 · 449 reputationPosted Jun 20, 2013, 3:47 AM EDT