href image link download on click

I generate normal links like: <a href=”https://stackoverflow.com/path/to/image”><img src=”https://stackoverflow.com/path/to/image” /></a> in a web app. When I click on the link, it displays the picture in a new page. If you want to save the picture, then you need to right click on it and select “save as” I don’t want this behaviour, I would like to … Read more

Is an empty href valid?

One of our web developers uses the following html as a placeholder for styling a drop down list. <a href=”” class=”arrow”></a> Is this considered anchor tag valid? Since there is no href value, it shows up as broken on some of our link checker reports. 10 Answers 10

Angular 2 router no base href set

I am getting an error and can’t find why. Here is the error: EXCEPTION: Error during instantiation of LocationStrategy! (RouterOutlet -> Router -> Location -> LocationStrategy). angular2.dev.js:23514 EXCEPTION: Error during instantiation of LocationStrategy! (RouterOutlet -> Router -> Location -> LocationStrategy).BrowserDomAdapter.logError @ angular2.dev.js:23514BrowserDomAdapter.logGroup @ angular2.dev.js:23525ExceptionHandler.call @ angular2.dev.js:1145(anonymous function) @ angular2.dev.js:14801NgZone._notifyOnError @ angular2.dev.js:5796collection_1.StringMapWrapper.merge.onError @ angular2.dev.js:5700run @ angular2-polyfills.js:141(anonymous … Read more

href=”tel:” and mobile numbers

If I use tel: I should write the international phone code, like that. <a href=”https://stackoverflow.com/questions/17219688/tel:+6494461709″>61709</a> So far, so good, but I can’t find information on how to write a cell phone number in an “international” way, if there is one. 5 Answers 5

Select which href ends with some string

Is it possible using jQuery to select all <a> links which href ends with “ABC”? For example, if I want to find this link <a href=”http://server/page.aspx?id=ABC”> 5 s 5 $(‘a[href$=”ABC”]’)… Selector documentation can be found at http://docs.jquery.com/Selectors For attributes: = is exactly equal != is not equal ^= is starts with $= is ends with … Read more