Jump to content

How to take javascript from another page php?


Recommended Posts

hello....how to take javascript from php page using javascript like this & what does mean page.php?complete&

function include(file) {	var head = document.getElementsByTagName('head').item(0);	var old  = document.getElementById('lastLoadedCmds');	if (old) head.removeChild(old);	script = document.createElement('script');	script.src = file;	script.type = 'text/javascript';	script.defer = true;	script.id = 'lastLoadedCmds';	void(head.appendChild(script));}include("page.php?complete&")

Edited by fdark
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...