This is an basic example of my question.
I have two or more html pages, look like
page1.html
<script src='notify.js'></script>
<h2>Page 1</h2>
<button id='btn' onclick='notify();'>Click</button>
page2.html
<script src='notify.js'></script>
<h2>Page 2</h2>
and so on..
my js file is notify.js
function notify(){
alert("button clicked");
}
In page1.html, there is a button
. When I click
the button
the alert
message should show in all pages. How can I achieve this?
In page1.html, the alert
message is shown successfully. But I need to show the alert
message in all pages, whenever the button
(in page1.html) is clicked.
This is like a notification process. I think some one can help me..