Monday, 10 October 2011

Changing title in javascript

<head>
<title>Original Title</title>
</head>
<body>
<form id="frm">
<div>
<input type="button" onclick="javascript:document.title='My New title';" value="Change title" />
</div>
</form>
</body>
</html>


Tag: Asp.net, calling server method from javascript, document.title, dynamic title in html, title

No comments:

Post a Comment

Parsing JSON w/ @ symbol in it

To read the json response like bellow @ concatenated with attribute                             '{ "@id": 1001, "@name&q...