Questions tagged as 'html'

4
answers

Upload Image via javascript

I tried to upload image by JS but I could not do it through onload , it follows the code I tried: HTML: <img class="razer" id="imageoption" onload="imageOption()"> JS: document.onload = function imageOption() {...
asked by 16.02.2018 / 19:32
1
answer

Tag "a" can be used without "href"?

Is there any restriction or problem in using the tag a without the href attribute? Example: <a>teste</a> .     
asked by 20.01.2017 / 14:55
2
answers

How to identify changed value in input

How to identify if a setting value has changed in input ? I have the prototype below, however, the alert will be displayed according to the number of times the class="ultimo-valor" appears in the code. <input class="ulti...
asked by 20.01.2017 / 23:02
1
answer

How to export a DIV with graphics to PDF

Does anyone have any javascript code that exports a graphics div to a .PDF file?     
asked by 28.03.2016 / 16:28
2
answers

JavaScript does not take on pages added later

I have a problem, which gives me a big question. I'm developing a website that has a default structure, which makes GET calls in Jquery to fetch new HTML pages for certain parts of the page. Example: I click on a link and the page c...
asked by 24.03.2016 / 01:06
1
answer

When should I use "xml:" in front of some attributes?

I noticed that some attributes use xml: for example xml:lang="pt-BR" ? It seems to me to be an attribute, but it is not local or global. In HTML5, is it necessary to use it? <html xml:lang="pt-BR"> </html>     
asked by 21.03.2016 / 00:52
2
answers

Materializecss is not responsive

A few days ago I made a template in materializecss; Today I accessed the phone and I realized that it is not getting responsive. I'll leave some prints to clarify better: Responsive (only when browser is down) Nonresponsive(whenacces...
asked by 17.12.2015 / 16:11
1
answer

Turning Javascript code into HTML?

I made a banner in the bannersnack site to be used in the eBay Marketplace, the site of the option to download the banner in GIF, PNG, JPG and HTML5 and makes available the code in JavaScript as well. The GIF does put it in eBay, however...
asked by 17.12.2015 / 19:46
2
answers

What is the correct tag for grouping elements in an aside

I'm creating a sidebar for my site, I want to put something like "latest posts, social networking, a kind of top most downloaded etc ..." or something simpler "latest posts" only: D .. butI'mindoubtabouttagaside,Iread,reli,andI'mstillreadingabo...
asked by 15.07.2016 / 10:52
1
answer

Anchor with Javascript

I have this code: $(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash)...
asked by 01.12.2015 / 17:40