jquery - Is it possible that when click button addclass on another html page -


is possible when click button addclass on html page using jquery ?

for example,

a.html

<button class="btn_click">when click, add 'active' class on b.html</button> 

b.html

<div class="active">active</div> 

is possible?

without server side intermediary wouldn't possible. you'd need send results of button click server update value , either pushed there page or other page poll , ask changes.

think of way. in facebook, if you're on 2 different computers , send message someone, message sent shows on other computer also. there servers involved.

but send directly? no. suppose might possible if 2 pages or tabs in same browser on same computer , used browser plugin. otherwise, there huge security risks if possible way.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -