Friday, February 26, 2010
JS file with Server Side Variable
Javascript object and class concept
<_script_start>
var path = {
currentUrl: "",
getPath: function() {
return this.currentUrl;
},
TEST: function() {
alert(this.currentUrl);
}
}
script type="text/javascript">
path.currentUrl = '';
path.TEST();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment