Category "html"

Can/should HTML5 Web Workers use CORS for cross-origin?

I ran into an interesting problem while creating a hosted API that relies on web workers. I was hoping to get a little community feedback on it. My server is s

Javascript Validation for all field with Required attribute

I've searched high and low for the answer to this but can't find it anywhere. I have a form which has the HTML 'required' attributes and it does a fine job of

CSS Media query not showing/hiding scrollbar

@media is giving me some problems... I can' seem to figure out how to get it to work. I would like to show the scrollbars if the height/width matches the query.

ol list counter reset based on start property using jquery

I need to make a jquery script that can take the OL start properly and transform it into a css based counter. So for a html like this: <ol > <li>F

Two buttons one form

<?=form_open('blog/register');?> <table> <tr> <td><label for="register_name">User

How to read line by line of a text area HTML tag

I have a text area where each line contains Integer value like follows 1234 4321 123445 I want to check if the user has really enetered vali

IE issues with 'focus' event

I have an app that must run in IE 7/8(compat). (I know, right?) The app includes the following functionality.... If I click on a dropdown list, the list checks

Using Tailwind prose on dark background makes text look too dark

Using Tailwind prose on dark background makes text look too dark without manual configuration TLDR; How do I get prose to work on a dark background? I have a Si

How to make HTML element resizable using pure Javascript?

I was wondering how we can make a HTML element like <div> or <p> tag element resizable when clicked using pure JavaScript, not the jQuery library or

Saving ArrayBuffer in IndexedDB

How can I save binary data (in an ArrayBuffer object) into IndexedDB? The IndexedDB spec doesn't mention ArrayBuffer - does that mean that is not supported (a

videojs youtube plugin MEDIA_ERR_SRC_NOT_SUPPORTED when updating src dynamically

So I have created a simple video playlist which works great with videos that I am hosting but I get the above error when loading a youtube video src. Onclick I

How do you insert javascript code into HTML

I have learned to build a fun piece of javascript on codeacademy and wanted to add it on a html document. How would I go about doing this or is it even possible

How to apply CSS page-break to print a table with lots of rows?

I have a dynamic table in my web page that sometimes contains lots of rows. I know there are page-break-before and page-break-after CSS properties. Where do I

make image( not background img) in div repeat?

I'm trying to repeat-y an image that's in a div and no background image but haven't figured how. Could you please point me to a solution? My code looks like th

Google Place Autocomplete dropdown falling "below" screen

I've been writing AngularJS web app and google places autocomplete autogenerated dropdown code causes it to sometimes be out of DOM. HTML code defining input t

HTML5 Input datetime-local default value of today and current time

Is there anyway that I can make a default value of HTML5 input type='datetime-local' to today's date and this current time. Thanks before

regular expression to copy line with some changes, mirror

I have a code in each html page that I want to duplicate, while add some changes: Example: <title>Any text (even if includes :.,</title> Output:

Website is not loading the script, CSS, or Three.js

Let me start out by saying that I have very little experience with HTML, javascript and overall website creation and hosting, so sorry in advance if the informa

How to know if browser has PDF viewer or not?

I am viewing PDF into iframe. It works fine. But some of the client don't able to see it in IE. They get it as download option. How can I identify if browser

disable datepicker for HTML 5 Input type='date'

On a web app with multiple input fields <input type="date" /> I have gotten various complaints from users who find the Android datepicker confusing. They