Skip to content

Tag: html

Move large image inside smaller visible container

I am trying to do something basic (beginner in programming). I try to take a large image and a smaller container, and move the image up or down inside while the user scrolls. So you can . Move the yellow up or down while the user can see the red in the same position (kept in doc flow). If i

Add 6 months from one date picker to another datepicker

I have two datepickers and one combobox in HTML. The combobox contain 2 values (6 months and 1 year). If I select 6 months from the combobox the second datepicker should show the date after 6 months from the first datepickers date. I need code for this using JavaScript only not in jQuery. My code is Answer I …

New line string from javascript

I cant do new line from javascript, I tried to do that with n, but nothing. Answer Apparently you are pretty new in javascript. You should use <br> instead. n new line for console outputs. Also you should use innerHTML instead of textContent. With textContent Console example:

Form submit without PHP

I’ve been trying to figure out how to submit form data without using PHP code, is there a way? The mailto: in HTML 5 only has the user fill the form out, then when submit is clicked, it opens another application (mail app on desktop/laptop, and mail app on smartphones) and puts the data fields inside the mess…

Odd over-scroll behavior

So we have this website, and when you scroll all the way down to the bottom it keeps scrolling. I’ve tried lots of ways to fix this and haven’t come across a valid solution. It seems to be adding margin outside of the main <html> tag. Any help would be greatly appreciated Only custom JS adde…