Home > front end >  Please help novice (=_=) button click
Please help novice (=_=) button click

Time:04-24

有一个页面a.html,上面有一个按钮,这个按钮有一个onclick事件,我想写一个b.html,上面也放一个按钮,想用这个b.html上的按钮点击后在不打开a的情况下实现a上按钮的onclick事件(两个html之间没有关系),请各路大佬指点

CodePudding user response:

There is no way to

CodePudding user response:

The a.h HTML inside the click event of writing a separate js file, then a.h HTML and b.h HTML are the introduction of the file, so that it can be used

CodePudding user response:

As god, maybe there is a chance,,,,

CodePudding user response:

reference 1st floor weixin_50944805 response:
there is no way to

 indeed as expected such,,, thank you

CodePudding user response:

reference fonee reply: 3/f
into god, maybe there is a chance,,,,

 thank you

CodePudding user response:

refer to the second floor gqkmiss response:
the a.h HTML inside the click event to write a separate js file, then a.h HTML and b.h HTML are the introduction of the file, so you can use the

This method is feasible, because this page is a need to access through the network, that is I said no relationship between these two pages,,

CodePudding user response:

This requirement is fishing??
  • Related