technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


How To Open URL In The Same Tab Or In The Same Window


Open URL In Same Window And In Same Tab

> Here we consider how to open URL in the same window or in the same tab.
> Lets start with one example.
> Suppose we have a button as shown below.

How To Open URL In The Same Tab Or In The Same Window, Open URL In The Same Tab, Open URL In The Same Window, How To Open URL In The Same Tab, How To Open URL In The Same Window, Open URL In The Same Tab Using Jquery, Open URL In The Same Window  Using Jquery,  Open URL In The Same Tab Using JavaScript, Open URL In The Same Window  Using JavaScript, Jquery, Open Tab, Open Window, JavaScript, HTML, PHP

> When we click on this button, it would navigate to Google.com.
> We have used window.open for opening this link.
> But the new link is opened in a new tab/ window.
> For opening the new link in the same tab/window, we can use following code.

window.open("www.google.com","_self");


> By using above code, we can open a link in the same tab/window.
> Else, we can use window.location.href = "http://www.google.com" .

window.location.href = "http://www.google.com";


> That's all, by using above methods, we can open a link in the same tab.

Watch Video of this Content on Video Steaming

Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Comments

1:
1
Amrita verma:
fgf
Fvb:
Xvb
aditya:
vcvcv
jafar Ikbal:
huyhiu
Tr:
Dff
abcdeghijklmnopqrstuvwxyz:
abcdeghijklmnopqrstuvwxyz
asdert:
ufgykjhuig

Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap