Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
PHP Popup Box
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FocuZst" data-source="post: 323915" data-attributes="member: 55907"><p>I found this code <a href="http://www.webmasterworld.com/javascript/3688676.htm" target="_blank">here</a> by <a href="http://www.webmasterworld.com/profile/Cienwen/" target="_blank"><strong>Cienwen</strong></a>. I'm not sure if it's exactly what you need.</p><p></p><p>[CODE]</p><p><script></p><p> function popup(){</p><p> if (!confirm("Are you sure you want to continue to view this page?"))</p><p> history.go(-1);</p><p> return ""</p><p> }</p><p></p><p> document.write(popup());</p><p></script></p><p></p><p>[/CODE]</p><p></p><p>When you visit a page, it will popup a box saying Are you sure you want to continue to view this page? and it will have 2 buttons below which are the options Ok and Cancel. If you click Ok, you will stay on that page, otherwise if you click Cancel, it will redirect you to the previous page you were in.</p><p></p><p></p><p></p><p>Hope it helps.</p></blockquote><p></p>
[QUOTE="FocuZst, post: 323915, member: 55907"] I found this code [URL='http://www.webmasterworld.com/javascript/3688676.htm']here[/URL] by [URL='http://www.webmasterworld.com/profile/Cienwen/'][B]Cienwen[/B][/URL]. I'm not sure if it's exactly what you need. [CODE] <script> function popup(){ if (!confirm("Are you sure you want to continue to view this page?")) history.go(-1); return "" } document.write(popup()); </script> [/CODE] When you visit a page, it will popup a box saying Are you sure you want to continue to view this page? and it will have 2 buttons below which are the options Ok and Cancel. If you click Ok, you will stay on that page, otherwise if you click Cancel, it will redirect you to the previous page you were in. Hope it helps. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
PHP Popup Box
Top