I am doing a MVC App. IT is a migration from ASP.NET.
in my _Layout
I have a Footer
that shows a message with a link to show Terms and Conditions. That Link opens a Htm
with all legal advices.
My intention is that Link calls a JavaScript action that open the Htm page. Like this.
function ShowTerms() {
document.bgColor = "#E9EAED";
oReturn = window.showModalDialog('TermsAndConditions.htm', window, 'dialogHeight:680px;dialogWidth=620px;resizable:no;status:no; help:no');
document.bgColor = "";
}
My JavaScript call is like this.
<span class="Term" onmouseover="this.style.cursor='pointer'" onclick="javascript:ShowTerms();">Terms y Conditions</span>
I have several erros when I display it. IIS do not find the page, and things like this.
Is that posible? or I have to call a Controller, Action Method and open it with Boostrap ShowModal?
Thanks