function OnMOCPageLoad() { var sPathName = window.location.pathname; var sPageName = sPathName.substring(sPathName.lastIndexOf('/') + 1); var lang = GetCookie("SmartSolveLang"); if (lang.toLowerCase() == "en-us") { return; } ChangeDefaultValue(); var mdl1 = document.getElementById("_ctl1_PXP_SUN_PERMANENT"); // DDLYesNo(mdl1, lang); function DDLYesNo(mdl1, lang) { var ddlVal; if (lang.toLowerCase() == "de-de") { var ddlVal = ["Ja", "Nein"]; } } DDLYesNo(); window.onload = DDLYesNo; // }
DDLYesNo
<html> <head> <script> function yourFunction() { alert("Page is loaded"); } </script> </head> <body onload="yourFunction()"> <h1>hi</h1> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)