fullyloaded Posted March 25, 2007 Share Posted March 25, 2007 hi i was wondering if there is anyway to have a custom alert box i have the alert box in my script now but i want to change it to a custom one so i can add an image to it i know its JavaScript but its in my php page thats why i post here alert box i have now : <script language="javascript"> if (confirm("A Member Has Invited You To Chat. Click Ok To View. ('Clicking Ok Will Not Accept The Chat Invite It Will Show You Who Has Invited You To Chat')")) window.open("website here", "NewWin","menubar=0,resizable=1,width=550,height=550,scrollbars=1"); </script> Quote Link to comment Share on other sites More sharing options...
utexas_pjm Posted March 25, 2007 Share Posted March 25, 2007 I believe that the alert box is defined by the browser. I don't think you can change the image on the alert box itself. You can, however, create a popup window and style it to look like an alert box with yuor own custom image. Best, Patrick Quote Link to comment Share on other sites More sharing options...
fullyloaded Posted March 25, 2007 Author Share Posted March 25, 2007 ok thanks for your help Quote Link to comment Share on other sites More sharing options...
DeathStar Posted March 25, 2007 Share Posted March 25, 2007 This is Javascript not PHP! Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 25, 2007 Share Posted March 25, 2007 http://slayeroffice.com/code/custom_alert/ There's a custom js alert. Your guess is as good as mine as to whether it works with all browsers. And regardless of whether it's in your php page, this is a javascript question so I'll move it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.