On the first page:
<button type="button" onclick="myFunction()">click</button>
Then on another page:
myFunction() {
alert("working");
};
This is the receiving page.
- all the basic tags
<script>
function alert() {
alert("The Link Has Been Successful");
}
</script>
The question is: How do I call the other function on the other page to alert that page <button onclick="????">?
<body>
<button onclick="???" type="button">Alert on the other page</button>
</body>
You can place all your global functions etc in a .js text file and then on all pages that need to call any of these routines you should declare it like this…
Now you can access your global functions and variables. Good luck!