J
Jeff
hi
asp.net 3.5
When I view the source of my site I see some javascript generated in the
html:
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
Wonder if I could remove this javascript from the page and put in a .js
file? I wonder how to do that?This is not like any other javascript I know
about, this javascript is generated in the html output from the webserver.So
I suppose some technique must be implemented which stop the html output from
generating the javascript if the javascript instead existsin a .js
file....Any suggestions?
asp.net 3.5
When I view the source of my site I see some javascript generated in the
html:
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
Wonder if I could remove this javascript from the page and put in a .js
file? I wonder how to do that?This is not like any other javascript I know
about, this javascript is generated in the html output from the webserver.So
I suppose some technique must be implemented which stop the html output from
generating the javascript if the javascript instead existsin a .js
file....Any suggestions?