I want to load a page using a link and depending on which link I click on, I want to change the margin on the page.
If I click on link 1, I want the margin to be 0, but if I click on link 2 I want it to be 350.
Is there a way to load a page and set the margin of an element if I know the ID in JavaScript? I'm quite happy to use JavaScript to open the page.
I don't want to use jQuery.
If I click on link 1, I want the margin to be 0, but if I click on link 2 I want it to be 350.
Is there a way to load a page and set the margin of an element if I know the ID in JavaScript? I'm quite happy to use JavaScript to open the page.
I don't want to use jQuery.