I am using this code it only word desktop browser and when i still this page, i want to puse remotly to a briwser.
I want to send push notification to opera mobile browser like hiw facebook send. Please help me

Suggest me javascript php mysql code
<script>
function pushNotify() {
if (!("Notification" in window)) {
alert("Web browser does not support desktop notification");
}
if (Notification.permission !== "granted")
Notification.requestPermission();
else {
$.ajax({
url : "push-notify.php",
type: "POST",
success: function(data, textStatus, jqXHR) {
// if PHP call returns data process it and show notification
// if nothing returns then it means no notification available for now
if ($.trim(data)){
var data = jQuery.parseJSON(data);
console.log(data);
notification = createNotification( data.title, data.icon, data.body, data.url);
setTimeout(function() {
notification.close();
}, 5000);
}
},
error: function(jqXHR, textStatus, errorThrown) {}
});
}
};
function createNotification(title, icon, body, url) {
var notification = new Notification(title, {
icon: icon,
body: body,
});
notification.onclick = function() {
window.open(url);
};
return notification;
}
</script>