Search results for 'javascript include in javascript'. 1 post(s) found.
- 2008/01/25 How to include Javascript from anonther ?
Actually there is such a function in PHP which function is "include".
It's very strong function.
But Javascript does not support such a function.
Here's the alternate method to do that.
To include javascript, following is using usually:
<script type="text/javascript" src="the_script.js"></script>
But above script is not available in Javascript so following is the alternate method to include another javascript.
the_another_javascript.js:
document.write( "<script type=\"text/javascript\" src=\"the_script.js\"></script>");
Isn't it simple ?
Actually the main logic above is writing script tag in the document.
Another posts included in "HTML, Javascript"
| IFRAME Auto Resize in IE, FireFox by Javascript (13) | 2008/05/03 |
| Clipboard copy function working (0) | 2008/10/17 |
| How to find the ip address of a client machine from a web application? (0) | 2009/03/21 |
| Javascript based Browser Sniffing (0) | 2008/01/25 |
| Javascript based Regular Expression Tester (0) | 2008/01/15 |
| Two useful string functions - substr & substring (0) | 2008/01/15 |
| Is there URLEncode function in Javascript ? (0) | 2007/10/11 |
| Move window (0) | 2007/09/07 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/29 03:53
moneyideas
-
Subject different money making ideas
2010/01/29 12:45
moneyideas
-
Subject different money making ideas
2010/01/31 16:43
moneyideas

Prev

Rss Feed