So i have this bookmarklet but i dont like the position of the window. How could i make it in the bottom left corner, rather than the top right?

This is the code, and i literally just copied and pasted the code from a website. It is a code that lets me view other websites while on a website in a little window. But im dumb and dont know how to reposition it.

javascript:((function()%7Bvar a,b,c;c="",b=document.createElement("iframe"),b.setAttribute("src",c),b.setAttribute("id","rusic-modal"),b.setAttribute("style","position: fixed; z-index: 999999; width: 600px; height: 400px; right: 10px; top: 10px; border: 5px solid #8834af; overflow: hidden; background-color: #fff;"),a=document.getElementsByTagName("body")%5B0%5D,a.appendChild(b)%7D)).call(this)

1 answer

  • answered 2019-10-15 15:12 ControlAltDel

    where you have "top", replace with "bottom". Where you have "right", replace with left

    So on the line with:

    right: 10px; top: 10px; border: 5px; ...


    left: 10px; bottom: 10px; border: 5px; ...