Jump to content

Open new tab with specified url and new tab with sound when new email


headfallingoff

Recommended Posts

Hello guys,

I am using a php code to check for unseen mails every second or so (using a refresh function), and when I do receive a new email, the content of this email I can also retrieve and pass on a url from this content to a php variable ($url).

Now, I want this system to automatically open a new tab in the browser, when the new email is opened and the $url retrieved. Not only that. I also need the url of the new tab to correspond to $url.

Finally, I also need a second tab to be opened automatically. On this tab I will refer to an existing url (sound.php) from my own website. On this page I need to play a sound on page load (alarm.wav). In Firefox nonetheless.

This is meant to be an alert system to minimize the amount of time used to access the emailed url. I have tried with different solutions from stackoverflow.com, but failed to pass on the php variable to the java script opening the tab, and also, did not succeed with the sound playing in Firefox.

Thank you in advance!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.