How can i make a particular function work on page A after pressing a button in page B? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i make a particular function work on page A after pressing a button in page B?

Building an interaction between web pages. Like making function work on the current web page after moving out of the previous page

20th Nov 2019, 8:04 PM
herjibek lawrence
herjibek lawrence - avatar
3 Answers
+ 1
single page toggle display of different section elements to appear as if they are different "page" like this one: https://code.sololearn.com/WD8Q8oa4BDl0/?ref=app
21st Nov 2019, 1:03 AM
Gordon
Gordon - avatar
+ 1
@Ipang yeah
21st Nov 2019, 2:41 PM
herjibek lawrence
herjibek lawrence - avatar
0
Just to be clear, so you have written a JS function in A.html and you want to execute that function from B.html. Is this what you mean? or is it the other ways around? or it's a whole different idea?
20th Nov 2019, 8:26 PM
Ipang