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 HussainPosted Jun 20, 2013, 7:37 AM
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.
darma tejaPosted Jun 20, 2013, 7:47 AM
Sunny SharmaPosted Jun 20, 2013, 7:16 AM
Suggest you share the code, so that we could have a better picture on your problem.
Ravi ShekharPosted Jun 20, 2013, 6:48 AM
You hosted your application on iis or not???
share your code here.
Ravi ShekharPosted Jun 20, 2013, 6:47 AM
You hosted your application on iis or not???