Saturday, April 15, 2017

Call JavaScript function from code behind

Example 1

Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);

Example 2

ClientScript.RegisterStartupScript(GetType(),"hwa","alert('Hello World...');",true);

Tuesday, April 11, 2017

HTML NOSCRIPT TAG

HTML <noscript> tag define alternative content for those user who has disable JavaScript in their browser

And also for those user whose browser is not able to support JavaScript

Programmer can write code or message for these kind of user in between <noscript> and </noscript>

The <noscript> element can be used in both <head> and <body>

<noscript> tag is supported by all browser

Example

<noscript>
   Any HTML code here
</noscript>