How do I create an alert dialog asking users to subscribe to my site using js?
<p>When someone is on my site I want my site to show an alert or confirm prompt asking the user to subscribe to my mailing list. I want the message to show up shortly but not immediately, Have the ok option direct the users to the subscribe page, 2 other options (I already subscribed, dismiss)</p>

<p>When they dismiss the option I want my site to leave a cookie on their computer for 7 days. When the cookie is active the prompt doesn't show. If the user clicks (I already subscribed) I want the cookie to last forever.</p>

<p>Is it possible for the subscribe page to leave a non expiring cookie to disable the subscribe prompt? If cookies only work with the url they were sent from I do have the option "I already subscribed"</p>

<p>Here's an <a href="http://i.stack.imgur.com/T1h7X.png" rel="nofollow">image</a> of a flowchart of the problem I want to solve</p>