javascript

DISPLAY

document.getElementById('loading').style.display = 'none';
document.getElementById('home-banner-section-wrap').style.display = 'block';

PAGE REDIRECT

GO BACK

<a href="javascript:history.back()">Back</a>
<a href="javascript:history.go(-1)">Back</a>

PAGE REDIRECT

window.location = "/our-work/supermodel-me-case-study"

reload page

window.location.reload()

button opens link

<button type="button" onclick="window.open('/newsletter')">Sign Up Now!</button>
window.open('myPage.html','Title','resizable=yes,width=500,height=400, top=10, left=10');

print page

<a href="javascript:window.print()">Print this page</a>
Advertisements