html - How to lock JavaScript element on page? -


i made new element in javascript , appendchilded parentnode of html element, seems great, see , can put data in it, when i'm trying change size of browser, or scroll element "following me".

how can "lock" it, won't move place put in?

thank answering. made it! :) used method wrote @abhishek verma.

you can create element , apply following css class.

.staticelement {  position: static;  top: 0:  left: 250; } 

you can change position of div changing value of top left element in css.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -