Friday 26 June 2015

open url in new window using javascript

if you want to open page or new url  in new tab or new window using javascript code then you have to use window object in your javascript code.

wimdow.open() method use to open url in new window.


Other Articles - Step by step solution

------------------------------------------------------------------------
three tier architecture in asp.net
how to connect MS access in asp.net
how to access website in LAN
------------------------------------------------------------------------

It's solution for



=> Open URL in new tab using javascript        
=> Open URL in same tab using javascript
=> Open URL in new window using javascript
=> Open URL in new window with custom size using javascript

var MyUrl = "http://problemaspdotnet.blogspot.in";

window.open(MyUrl);

window.open(MyUrl, "_blank");

window.open(MyUrl, "_parent");

window.open(MyUrl, "_self");

window.open(MyUrl, "_top");

window.open(MyUrl, "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=200, left=100, width=150, height=150");

No comments:

Post a Comment



Asp.net tutorials