Top "Html" questions

HTML (HyperText Markup Language) is the markup language for creating web pages and other information to be displayed in a web browser.

How to get the data-id attribute?

I'm using the jQuery quicksand plugin. I need to get the data-id of the clicked item and pass it to …

javascript html jquery custom-data-attribute
Get the size of the screen, current web page and browser window

How can I get windowWidth, windowHeight, pageWidth, pageHeight, screenWidth, screenHeight, pageX, pageY, screenX, screenY which will work in all major …

javascript html jquery layout cross-browser
How to make JavaScript execute after page load?

I'm executing an external script, using a <script> inside <head>. Now since the script executes before …

javascript html dom dom-events pageload
How to add a browser tab icon (favicon) for a website?

I've been working on a website and I'd like to add a small icon to the browser tab. How can …

html icons favicon
jQuery disable/enable submit button

I have this HTML: <input type="text" name="textField" /> <input type="submit" value="send" /> How can …

javascript html jquery
How to allow only numeric (0-9) in HTML inputbox using jQuery?

I am creating a web page where I have an input text field in which I want to allow only …

jquery html validation numeric
How can I select an element by name with jQuery?

Have a table column I'm trying to expand and hide: jQuery seems to hide the td elements when I select …

javascript jquery html dom jquery-selectors
Pure JavaScript equivalent of jQuery's $.ready() - how to call a function when the page/DOM is ready for it

With jQuery, we all know the wonderful .ready() function: $('document').ready(function(){}); However, let's say I want to run a …

javascript jquery html
Adding a favicon to a static HTML page

I have a few static pages that are just pure HTML, that we display when the server goes down. How …

html static favicon
Include another HTML file in a HTML file

I have 2 HTML files, suppose a.html and b.html. In a.html I want to include b.html. In …

javascript html dom include