Title: Javascript Popup
Last modified: August 19, 2016

---

# Javascript Popup

 *  [psdtutorials](https://wordpress.org/support/users/psdtutorials/)
 * (@psdtutorials)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/javascript-popup/)
 * Hello there,
 * I was wondering how I might go about creating some sort of popup or warning message
   that would appear when a user first visits the blog??
 * Thanks
    Belal Ahmed

Viewing 1 replies (of 1 total)

 *  [anes_pa](https://wordpress.org/support/users/anes_pa/)
 * (@anes_pa)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/javascript-popup/#post-1054905)
 * Hello Belal,
 *  You can make use
    <?php add_action(‘pre_get_posts’,’postman’); ?> here postman
   is a call back Function
 * some like this
    <?php
 * function postman()
    { echo “<script>alert(‘welcome user’);</script>”;
 * }
    Try this … ok Good luck
 * bye anes

Viewing 1 replies (of 1 total)

The topic ‘Javascript Popup’ is closed to new replies.

## Tags

 * [box](https://wordpress.org/support/topic-tag/box/)
 * [java](https://wordpress.org/support/topic-tag/java/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [message](https://wordpress.org/support/topic-tag/message/)
 * [Message Box](https://wordpress.org/support/topic-tag/message-box/)
 * [pop](https://wordpress.org/support/topic-tag/pop/)
 * [popup](https://wordpress.org/support/topic-tag/popup/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [up](https://wordpress.org/support/topic-tag/up/)

 * 1 reply
 * 2 participants
 * Last reply from: [anes_pa](https://wordpress.org/support/users/anes_pa/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/javascript-popup/#post-1054905)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
