I have a static page that has login and registration link.I want that when a user clicks on Login,it calls a Javascript function that in turn displays the Login Form on the same page.
Although I can embed the whole HTML tag in document.write() but that is very messy and am sure is not the best practice for long HTML codes.
So how can i embed HTML codes into the JS function?and how do i control the positioning of the form on the page.
I am looking for a Javascript solution only and not JQuery