javascript - Can an id of an html be related even between different html documents that are referenced to each other? -


this hard question explain.

for example, if have function "randomfunction" in javascript file "somefile.js," , in html have button activates function "randomfunction," has "somefile.js it's script, 2 "randomfunction"s cooperate each other?

hope makes sense...

yes.

there single execution environment per page javascript.

anything placed global scope 1 script can access other script script on page.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -