Angular 2 router no base href set

https://angular.io/docs/ts/latest/guide/router.html Add the base element just after the <head> tag. If the app folder is the application root, as it is for our application, set the href value exactly as shown here. The <base href=”https://stackoverflow.com/”> tells the Angular router what is the static part of the URL. The router then only modifies the remaining part … Read more

window.location.href and window.open () methods in JavaScript

window.location.href is not a method, it’s a property that will tell you the current URL location of the browser. Changing the value of the property will redirect the page. window.open() is a method that you can pass a URL to that you want to open in a new window. For example: window.location.href example: window.location.href=”http://www.google.com”; //Will … Read more

href=”tel:” and mobile numbers

When dialing a number within the country you are in, you still need to dial the national trunk number before the rest of the number. For example, in Australia one would dial: 0 – trunk prefix 2 – Area code for New South Wales 6555 – STD code for a specific telephone exchange 1234 – … Read more

Open link in new tab or window [duplicate]

You should add the target=”_blank” and rel=”noopener noreferrer” in the anchor tag. For example: <a target=”_blank” rel=”noopener noreferrer” href=”http://your_url_here.html”>Link</a> Adding rel=”noopener noreferrer” is not mandatory, but it’s a recommended security measure. More information can be found in the links below. Source: MDN | HTML element <a> | attribute target About rel=noopener Opens External Anchors Using … Read more

Open a URL in a new tab (and not a new window)

This is a trick, function openInNewTab(url) { window.open(url, ‘_blank’).focus(); } //or just window.open(url, ‘_blank’).focus(); In most cases, this should happen directly in the onclick handler for the link to prevent pop-up blockers, and the default “new window” behavior. You could do it this way, or by adding an event listener to your DOM object. <div … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)